// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!WIDTH LUMA.w 2 *
//!HEIGHT LUMA.h 2 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_Medium_2x_Photo] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_Medium_2x_Photo] feature map 1

vec4 hook()
{
vec4 res = vec4(0.008226807229221,0.403140336275101,0.257084548473358,0.052780274301767);
res += vec4(-0.004069406073540,0.002817957894877,0.022387292236090,-0.054573357105255) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.011485410854220,0.008249746635556,-0.073177479207516,0.005213913973421) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.093662627041340,0.007042587734759,-0.048906598240137,0.195624843239784) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.021571377292275,-0.045349523425102,-0.006064548157156,-0.043215319514275) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.053554560989141,0.024129278957844,0.018687315285206,0.032874252647161) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.010045360773802,0.066207922995090,-0.023950366303325,0.068532444536686) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.049432627856731,-0.197877347469330,0.198866426944733,-0.643113076686859) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.051245752722025,0.088175505399704,-0.201984435319901,-0.459055602550507) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.157344847917557,0.000302557367831,-0.611963093280792,0.038671530783176) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.152265250682831,-0.024325231090188,0.003684041323140,-0.043783552944660) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.016877917572856,-0.057468116283417,0.030250860378146,0.394595146179199) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.100170619785786,-0.409375995397568,-0.239498928189278,0.047028843313456) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.152230411767960,-0.708939373493195,0.517302393913269,-0.603445887565613) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.644106149673462,0.148420259356499,0.095531024038792,0.110809937119484) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.081226982176304,-0.062796063721180,-0.117453314363956,-0.077618144452572) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.073426060378551,-0.101507693529129,-0.018184900283813,0.087793290615082) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.035575088113546,0.197277873754501,0.024386543780565,0.319213122129440) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-1.124169468879700,-0.312416732311249,-0.128464356064796,0.103334143757820) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.135594159364700,0.084201522171497,-0.503196716308594,-0.088799402117729) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.145962789654732,-0.026155063882470,0.024695307016373,0.041254762560129) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.044291678816080,0.027429336681962,-0.035367675125599,-0.104291453957558) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.199510425329208,-0.124159231781960,0.000733267515898,0.086517289280891) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.112756535410881,-0.037016823887825,0.057282045483589,-0.016367187723517) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.267477661371231,-0.038833830505610,-0.029587686061859,0.007877124473453) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.020696520805359,0.031088732182980,0.026138877496123,0.012866226024926) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.102287814021111,-0.051347322762012,-0.004872973542660,-0.017258796840906) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_Medium_2x_Photo] feature map 2

vec4 hook()
{
vec4 res = vec4(0.062130186706781,0.163229495286942,0.352507948875427,-0.577018976211548);
res += vec4(0.025691526010633,0.039952408522367,0.025958137586713,-0.008202855475247) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.124581970274448,-0.004922547843307,0.004376076161861,0.023118371143937) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.137970879673958,0.001249682041816,-0.040725931525230,0.024083146825433) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.171638146042824,-0.479091465473175,0.018472751602530,-0.025743437930942) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.069674998521805,-0.205221042037010,0.015240974724293,0.010444949381053) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.112889871001244,-0.091884396970272,-0.061723675578833,0.013724927790463) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.072071865200996,-0.271980106830597,0.136066243052483,-0.082062594592571) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.529101908206940,-0.305018395185471,0.035315047949553,-0.265651792287827) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.136391207575798,-0.736622571945190,0.054246753454208,0.011137037537992) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.041173733770847,-0.381288349628448,-0.027911404147744,-0.006155890412629) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.377019047737122,0.138868644833565,-0.004144397564232,-0.021583819761872) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.232648700475693,0.140177786350250,0.245322436094284,0.165974169969559) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.880657732486725,0.479617953300476,-0.739387452602386,0.018813740462065) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.311210840940475,-0.255941271781921,-0.078612953424454,-0.214474067091942) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.061327621340752,0.101387694478035,-0.034875370562077,-0.024037919938564) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.123667083680630,0.000354811782017,0.014190067537129,-0.056385044008493) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.081259198486805,-0.136071279644966,-0.094513922929764,0.651410102844238) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.030561434105039,0.204282522201538,-0.181930869817734,0.497093468904495) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.017830468714237,-0.302078157663345,-0.181021168828011,-0.060583043843508) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.000139258816489,0.021124726161361,0.008465993218124,0.058361031115055) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.015478930436075,-0.010462293401361,-0.049206003546715,0.024167366325855) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.040166374295950,0.004695691633970,0.109690763056278,0.055216368287802) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.009335397742689,0.072427332401276,-0.079121589660645,0.034893162548542) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.091724596917629,0.040044415742159,0.019006734713912,-0.074239164590836) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.011825549416244,-0.023638501763344,-0.017926612868905,0.001354901585728) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.942119538784027,0.017114991322160,0.109586082398891,-0.019486920908093) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_Medium_2x_Photo] feature map 3

vec4 hook()
{
vec4 res = vec4(0.082885459065437,-0.152362763881683,0.039568275213242,0.092342853546143);
res += vec4(0.031089283525944,0.008617954328656,0.092317968606949,0.026677580550313) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.019940426573157,0.080390080809593,-0.142967581748962,-0.097353279590607) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.104227535426617,-0.084618307650089,0.189663112163544,0.202833503484726) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.048012919723988,-0.033893335610628,-0.136633679270744,0.011033146642148) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.001053460408002,-0.013609545305371,0.015329629182816,0.058198727667332) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.016360623762012,0.010963018052280,-0.001662170281634,-0.009730149991810) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.094889208674431,-0.260926663875580,-0.292168676853180,0.260094642639160) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-1.125614047050476,0.310372918844223,0.144476011395454,0.233181670308113) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.296880900859833,-0.017852278426290,0.088074401021004,0.011105139739811) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.050278361886740,-0.057998005300760,-0.019624574109912,0.037974126636982) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.023764217272401,0.077128261327744,-0.011216314509511,0.044685009866953) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.007510396186262,0.207516103982925,-0.248462945222855,0.090958297252655) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.049521390348673,0.498172819614410,-0.394948720932007,-0.584191858768463) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.385752618312836,0.150884062051773,-0.106487333774567,0.134669974446297) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.030284784734249,0.137876093387604,-0.078766860067844,-0.114613436162472) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.019335208460689,-0.117073178291321,-0.061724815517664,-0.238738283514977) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.024577418342233,-0.146553248167038,0.521691501140594,0.211550086736679) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.344186723232269,-0.219329968094826,0.043681424111128,-0.176140934228897) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.054735291749239,-0.314912319183350,0.136147335171700,0.105633877217770) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.003663206240162,-0.028089292347431,0.136718794703484,-0.072335563600063) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.018219299614429,0.016961906105280,-0.036601416766644,0.121866025030613) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.046242050826550,-0.036588151007891,0.110679782927036,-0.104624666273594) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.016211450099945,0.023775614798069,0.100771948695183,-0.141663357615471) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.035225879400969,-0.086251504719257,0.046897497028112,-0.144052758812904) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.075949333608150,0.020838025957346,-0.108568713068962,-0.023553764447570) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.005042817443609,-0.089252218604088,0.591721117496490,0.990843594074249) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_Medium_2x_Photo] feature map 4

vec4 hook()
{
vec4 res = vec4(0.428274095058441,0.057057242840528,-0.079080976545811,0.008032117970288);
res += vec4(0.049667719751596,-0.027370858937502,0.019827844575047,-0.060913451015949) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.071560062468052,0.051102574914694,-0.064442016184330,0.186724171042442) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.122510962188244,-0.070072732865810,-0.069402553141117,-0.018843870609999) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.093186758458614,0.046998437494040,0.067861415445805,-0.048774089664221) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.029411122202873,-0.002269379561767,0.003893024520949,-0.049441996961832) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.017419569194317,-0.057859331369400,-0.036117315292358,-0.138888508081436) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.297054946422577,-0.015850462019444,-0.314113318920135,-0.131549656391144) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.125386252999306,-0.092267356812954,0.406482070684433,0.337655067443848) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.083851151168346,-0.033628925681114,-0.064001351594925,0.006458531599492) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.030705256387591,0.091459326446056,0.040649313479662,0.250923901796341) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.129437312483788,0.053736411035061,-0.092551901936531,0.169717848300934) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.385456919670105,0.277028173208237,-0.607692956924438,-0.343654215335846) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.142943933606148,-0.739168047904968,0.721893250942230,-0.268643379211426) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.069983750581741,-0.180608645081520,0.046041637659073,0.239074558019638) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.016267003491521,-0.039871823042631,-0.095181636512280,-0.083524450659752) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.102614246308804,-0.062540538609028,0.046942599117756,0.154852285981178) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.251050084829330,-0.228681579232216,-0.135042145848274,0.269534945487976) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.015494290739298,0.765825092792511,0.165770798921585,-0.298190146684647) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.070315718650818,0.223784983158112,-0.066438779234886,0.208065450191498) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.040456291288137,-0.022336302325130,0.019719269126654,-0.256374716758728) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.032765388488770,0.079335667192936,-0.043743528425694,-0.011929987929761) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.065530247986317,-0.075448393821716,-0.019940452650189,-0.169641762971878) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.124872244894505,0.136855110526085,0.059295449405909,0.095153920352459) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.036434333771467,-0.087500534951687,0.005312137305737,-0.107253171503544) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.054632913321257,-0.029721863567829,-0.004945697262883,0.127132445573807) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.491579502820969,0.656435728073120,-0.295885711908340,0.764981031417847) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_Medium_2x_Photo] feature map 5

vec4 hook()
{
vec4 res = vec4(0.047851946204901,0.016185175627470,0.000144012796227,-0.397957116365433);
res += vec4(-0.063077390193939,0.008929099887609,-0.079457305371761,-0.006207883823663) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.117342934012413,-0.004190950654447,-0.046281337738037,-0.028220716863871) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.000910217000637,-0.056682433933020,0.171449884772301,0.178712874650955) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.125249937176704,-0.018001420423388,-0.015707580372691,-0.038281708955765) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.044168774038553,0.012149868533015,-0.029012033715844,-0.026159292086959) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.100280024111271,0.005260058678687,0.027087563648820,0.121077924966812) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.059503946453333,0.055980637669563,-0.156562924385071,0.283004999160767) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.630743086338043,-0.449269980192184,-0.050474852323532,0.282977819442749) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.513487756252289,0.050665646791458,0.165449112653732,0.216298565268517) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.084893755614758,0.111030101776123,0.148310646414757,0.010910924524069) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.014760882593691,0.024887615814805,-0.028312388807535,-0.090164370834827) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.156179800629616,-0.153342276811600,0.470533251762390,0.338946998119354) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.832286417484283,0.003472830401734,-0.017684010788798,-0.010555158369243) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.351481586694717,0.509719610214233,-0.464193552732468,-0.555171489715576) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.031112311407924,-0.093448951840401,0.001770478789695,-0.068027414381504) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.040719199925661,-0.017464265227318,0.035952139645815,-0.004417460411787) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.239976480603218,-0.008939345367253,-0.001970821060240,0.169246479868889) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.426666200160980,-0.099360838532448,0.094901539385319,-0.381676942110062) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.006339043844491,0.156601414084435,-0.032871820032597,0.059620779007673) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.046855874359608,0.032468110322952,-0.155979767441750,0.071435920894146) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.073292441666126,-0.004042961169034,0.048493947833776,-0.002040626015514) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.085919156670570,0.043865989893675,-0.119285985827446,0.019430039450526) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.285122126340866,-0.161730095744133,-0.314368546009064,-0.096241623163223) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.171031758189201,0.079121947288513,0.360209822654724,0.034415040165186) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.018780795857310,-0.006528359837830,0.041528802365065,0.042150489985943) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(0.988334953784943,0.469191700220108,0.243603304028511,-0.022379441186786) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_Medium_2x_Photo] feature map 6

vec4 hook()
{
vec4 res = vec4(-0.344334721565247,-0.303277939558029,0.092026241123676,0.046699460595846);
res += vec4(0.014644872397184,0.053483128547668,-0.037936422973871,-0.078755684196949) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.015848506242037,-0.027528582140803,0.065526284277439,-0.223278447985649) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.043554104864597,0.116390421986580,0.026936085894704,0.125767409801483) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.068079300224781,-0.040470030158758,0.052459690719843,0.019990770146251) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.085781335830688,0.003364385804161,0.001680974964984,0.072105444967747) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.022289289161563,-0.110559426248074,-0.016739429906011,0.124642021954060) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.050522636622190,-0.008414010517299,0.060486335307360,0.141947880387306) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.111936621367931,0.003373116021976,0.100370652973652,0.024789873510599) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.275122404098511,0.094591870903969,-0.003736617974937,-0.197255477309227) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.430872827768326,-0.018065089359879,0.015392515808344,-0.030204847455025) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.029808674007654,-0.104132406413555,0.039537619799376,0.049087025225163) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.175695270299911,-0.029345987364650,0.417776942253113,-0.723674297332764) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.481248080730438,0.832893490791321,0.158147633075714,0.726216614246368) * float(LUMA_texOff(vec2(0,0)));
res += vec4(-0.049865253269672,0.208433568477631,-0.180757820606232,-0.268410205841064) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.460380226373672,-0.038140837103128,-0.010753527283669,0.233571961522102) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.040776103734970,-0.021094053983688,0.093251913785934,-0.016453729942441) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.020582197234035,-0.088278718292713,-0.040713459253311,0.171912014484406) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.024541079998016,-0.096393525600433,-1.425213336944580,-0.064736053347588) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.246906936168671,0.008793923072517,0.029121017083526,0.040454454720020) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.184658169746399,0.000779561931267,0.019937368109822,-0.107738398015499) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.016653880476952,0.041279282420874,0.015757799148560,0.015185446478426) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.013770908117294,-0.181416720151901,0.003348358441144,0.034521877765656) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.018363837152719,0.068121023476124,-0.134178027510643,-0.151251047849655) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.069731660187244,-0.056304253637791,0.095613464713097,0.078747086226940) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.032446015626192,-0.040073208510876,0.024838596582413,-0.019762447103858) * float(LUMA_texOff(vec2(2,2)));
res = max(res, vec4(0.0)) + vec4(-0.074706844985485,0.847188830375671,-0.045877039432526,0.805211067199707) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_2x_Photo] mapping 1_1

vec4 hook()
{
vec4 res = vec4(0.019703604280949,0.049368869513273,-0.017378648743033,-0.069861970841885);
res += mat4(0.139785557985306,-0.093247868120670,-0.043668732047081,-0.044593799859285,0.109079942107201,-0.022929679602385,-0.007979882881045,0.014997226186097,-0.030641011893749,-0.039297945797443,0.033103927969933,0.040329221636057,-0.016812182962894,-0.002773777348921,-0.037346273660660,-0.046041075140238) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.083764635026455,0.070837721228600,0.028735911473632,-0.125221654772758,-0.059795323759317,0.046112559735775,0.025386601686478,0.022292578592896,0.008832700550556,-0.080637477338314,-0.047784764319658,0.065896958112717,0.026180731132627,0.005695879459381,0.006279773078859,0.036206640303135) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.040371473878622,0.123414374887943,-0.017125517129898,-0.061819363385439,-0.036051906645298,0.171192452311516,-0.093561097979546,-0.131812125444412,-0.008438008837402,-0.087565213441849,-0.021609805524349,0.017545111477375,0.012050629593432,-0.041930090636015,-0.048038378357887,0.186623796820641) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.094871088862419,0.100878901779652,-0.177538394927979,0.161950543522835,-0.041040234267712,-0.060429736971855,0.080401740968227,-0.034296400845051,-0.042867016047239,0.034157052636147,0.074654392898083,0.118204519152641,0.038541622459888,0.026100369170308,-0.021080333739519,-0.069862075150013) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.133571207523346,-0.004950200673193,0.150064587593079,0.167196333408356,0.134607896208763,0.073696106672287,0.038628511130810,0.042687498033047,0.015809791162610,0.044652305543423,0.006896327715367,-0.063856162130833,-0.006295874714851,0.036204501986504,-0.074234075844288,0.007395933847874) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.040945708751678,0.007008985616267,0.053507875651121,-0.053985018283129,-0.054109070450068,0.021089140325785,0.017158204689622,-0.005975614301860,0.010620838962495,0.011694388464093,0.093188121914864,0.004101005848497,-0.053014330565929,-0.013996785506606,-0.147518754005432,-0.072754561901093) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.025829618796706,0.046748541295528,-0.223501384258270,0.123526729643345,-0.081199228763580,-0.139691606163979,0.032880101352930,0.048163726925850,0.139387175440788,0.068734124302864,-0.043699678033590,0.113219238817692,-0.006130529567599,0.027967531234026,-0.076962009072304,0.212982639670372) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.012722068466246,0.074260450899601,0.008628898300231,0.133781492710114,-0.045891948044300,-0.191964387893677,0.022279048338532,-0.035686790943146,0.027579879388213,0.009904466569424,-0.055919017642736,0.164894983172417,0.044252175837755,0.215859815478325,0.135386392474174,-0.034694056957960) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.040501937270164,0.166536003351212,0.059138122946024,0.002506225369871,-0.018821984529495,-0.090005934238434,-0.040972638875246,0.004304456524551,-0.027258753776550,-0.069933556020260,-0.001125542563386,-0.117552079260349,0.052176855504513,0.086184784770012,0.011666080914438,-0.172456562519073) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.032708521932364,-0.011342782527208,-0.046511519700289,0.056823980063200,0.036853585392237,0.065268769860268,-0.046312611550093,0.029866963624954,-0.007775855716318,-0.075688667595387,0.002288672141731,0.044390831142664,0.146564781665802,0.003799505298957,0.043619599193335,-0.012074595317245) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.021830692887306,-0.004820086527616,0.216234743595123,0.180040344595909,0.078911937773228,0.295538753271103,0.048976775258780,-0.040241274982691,-0.053976301103830,-0.102887444198132,0.002423492027447,0.087305568158627,0.058710560202599,0.120211996138096,0.004378144163638,0.076167687773705) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.091738671064377,0.021283462643623,0.024532962590456,-0.007822621613741,-0.040868729352951,0.249633714556694,-0.067323751747608,0.049109231680632,-0.012249425053596,-0.049220405519009,-0.048566371202469,-0.116500355303288,-0.080429293215275,-0.011942709796131,0.015472334809601,-0.011580433696508) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.211028978228569,0.201485887169838,-0.068588733673096,-0.062259208410978,-0.037128310650587,0.022143917158246,0.079449675977230,0.232741147279739,0.070658460259438,0.101486004889011,-0.007480086758733,0.007371513638645,0.067141324281693,-0.018082231283188,-0.010365765541792,0.027435498312116) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.106360279023647,-0.146069213747978,-0.296672165393829,0.092111371457577,0.046483822166920,0.004350561182946,0.025078345090151,0.056556709110737,0.141437619924545,0.080354064702988,0.073442041873932,0.088257767260075,0.062847204506397,0.107836522161961,-0.072636477649212,0.002599331550300) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.018768334761262,0.115547187626362,0.106812886893749,0.055343266576529,-0.056346129626036,0.145351216197014,-0.051296196877956,0.061188880354166,0.023236380890012,0.088851578533649,0.008268120698631,0.038211680948734,-0.064884856343269,0.036811966449022,0.000192125386093,-0.007975074462593) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.270168781280518,-0.143503636121750,0.121189661324024,-0.170983672142029,-0.156146377325058,-0.054412286728621,0.143391117453575,-0.000915750511922,-0.063149221241474,-0.097281247377396,-0.042418640106916,-0.136760637164116,-0.057019233703613,-0.019467573612928,0.027826601639390,0.017878079786897) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.281726598739624,0.078514665365219,0.003329631872475,-0.172378346323967,-0.026866687461734,0.014014944434166,-0.094442307949066,0.042903706431389,0.048729881644249,-0.271350413560867,-0.041369307786226,0.002971518086269,-0.075454175472260,0.030134752392769,-0.073371127247810,-0.070430897176266) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.114909261465073,-0.033898700028658,-0.075109459459782,0.007233398035169,0.029315084218979,0.115018792450428,-0.005455883219838,0.109272062778473,-0.104730151593685,-0.137761220335960,-0.145982578396797,0.065490655601025,0.101333290338516,-0.081855028867722,-0.073630876839161,0.041265323758125) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.028604418039322,-0.134951755404472,0.088476352393627,-0.113989733159542,0.110022664070129,0.008808993734419,0.102628178894520,0.014685976319015,0.065186753869057,0.067544788122177,0.117948025465012,-0.021757867187262,-0.011269575916231,0.011942254379392,0.001308078761213,-0.013035990297794) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.040826421231031,-0.097996786236763,0.040155816823244,-0.060648832470179,-0.086369693279266,-0.069903835654259,-0.032624408602715,0.085874877870083,0.046438153833151,-0.110837347805500,0.098774798214436,0.230521380901337,0.021330229938030,-0.100862860679626,0.079706907272339,-0.057563923299313) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.042277283966541,0.145103871822357,0.057385701686144,0.059074018150568,0.058252755552530,0.037249203771353,0.052775438874960,0.124570608139038,-0.027437854558229,0.047597013413906,0.016437169164419,0.022944970056415,0.023820530623198,0.130778327584267,0.074516877532005,0.035525515675545) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.038059003651142,-0.016905359923840,0.053782183676958,-0.027602644637227,-0.007727437652647,0.039605636149645,0.144953593611717,0.286205440759659,-0.121260561048985,-0.006808253005147,0.064694620668888,-0.024939609691501,-0.141250550746918,0.038043864071369,-0.000192296123714,-0.099518164992332) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.002502046991140,0.101838260889053,-0.068942263722420,-0.140790417790413,-0.151226803660393,-0.017328247427940,0.111045569181442,0.093785382807255,-0.014767463319004,-0.132644027471542,-0.177205249667168,0.246890395879745,0.102884039282799,0.070916041731834,-0.053024645894766,0.028713695704937) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.009316817857325,0.093083955347538,-0.041637994349003,-0.084905639290810,0.028927324339747,0.099199332296848,0.024396425113082,0.084254883229733,-0.037134006619453,-0.068854294717312,0.045403502881527,-0.015270625241101,-0.076776221394539,0.230240851640701,0.089307487010956,0.010479521006346) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.000004921223535,-0.123192124068737,-0.019142713397741,-0.129799559712410,0.058341491967440,0.002322707790881,-0.023600995540619,-0.009537982754409,0.125422567129135,-0.017585467547178,0.141626685857773,-0.269454747438431,-0.013864494860172,-0.029103213921189,-0.075434193015099,-0.203257232904434) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.163045957684517,0.074728511273861,0.105737306177616,0.024907441809773,0.044297870248556,-0.261923491954803,0.084859281778336,-0.108956381678581,-0.011677055619657,0.029336672276258,-0.097417473793030,-0.184621855616570,0.203603938221931,0.023575142025948,-0.007544532418251,0.050251297652721) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.059343352913857,-0.047813009470701,0.057942014187574,-0.016129234805703,0.023752132430673,-0.059894729405642,-0.080754026770592,0.030047032982111,-0.036277845501900,0.058120544999838,-0.069928862154484,0.127322390675545,0.040261838585138,-0.092473387718201,-0.121728852391243,0.144545450806618) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.072201043367386,0.066959843039513,-0.094150148332119,0.002196947578341,0.097036868333817,0.125802412629128,0.020362170413136,0.033955581486225,0.018404981121421,0.056817486882210,-0.042282205075026,0.037924651056528,-0.081019811332226,0.168975338339806,-0.015584700740874,-0.020179091021419) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.081358276307583,-0.000611008377746,0.002270197961479,-0.060258060693741,-0.093884423375130,0.123054735362530,0.190734535455704,-0.058491408824921,0.036489870399237,0.182632520794868,0.026719503104687,-0.123725086450577,-0.041520494967699,-0.035788886249065,0.107631511986256,0.048626195639372) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.024295197799802,-0.155454814434052,0.054687868803740,0.178382620215416,0.015952302142978,0.051258794963360,-0.074420638382435,-0.164714291691780,0.046900071203709,-0.004041207022965,-0.075851954519749,-0.055004864931107,0.083679713308811,-0.027362063527107,0.055572550743818,0.091486513614655) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.003531752154231,0.116742327809334,-0.070971198379993,0.039434134960175,-0.023250995203853,-0.255778342485428,-0.017023844644427,0.154687374830246,-0.061607960611582,0.060773979872465,0.046415280550718,-0.085100203752518,-0.158030360937119,-0.018678456544876,0.040078453719616,-0.158711895346642) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.101906992495060,0.140801921486855,0.013798549771309,-0.151159137487411,-0.163955390453339,-0.259311586618423,0.128863021731377,0.054463207721710,0.285209357738495,0.356649696826935,0.108458451926708,0.237618595361710,0.058751855045557,0.066361963748932,-0.101760640740395,0.087187677621841) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.133501648902893,0.011312390677631,0.081975974142551,0.044007219374180,-0.064349949359894,0.017755458131433,0.116932027041912,-0.097239837050438,0.019653795287013,-0.070584647357464,0.088181324303150,-0.021333446726203,0.016561055555940,-0.087122343480587,0.015959052368999,0.281801998615265) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.205494850873947,0.129211127758026,-0.043320134282112,-0.117981851100922,-0.010664763860404,0.119543537497520,-0.246985942125320,0.093324922025204,-0.137411907315254,-0.024161491543055,0.019892314448953,0.023737786337733,-0.190127417445183,0.063623614609241,-0.119530141353607,-0.247137352824211) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.025375738739967,0.070967637002468,-0.022386880591512,-0.107735328376293,0.165952131152153,-0.036022216081619,-0.169729769229889,0.185840770602226,0.242745012044907,0.079534143209457,0.023313267156482,0.346392631530762,0.110055804252625,-0.029777495190501,0.058683957904577,-0.153338283300400) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.137465417385101,-0.041028060019016,-0.048478908836842,-0.039943315088749,0.084477148950100,-0.013964376412332,0.105920732021332,-0.032706134021282,-0.071709997951984,-0.119147934019566,0.098286472260952,0.032189868390560,0.136068627238274,0.044420082122087,-0.207220941781998,0.023330738767982) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.014407912269235,0.083007231354713,-0.053028609603643,-0.013767549768090,-0.101824164390564,-0.077241577208042,0.125142619013786,-0.158539518713951,-0.052190296351910,-0.006774261128157,0.028871435672045,-0.066345326602459,0.134488418698311,0.060630839318037,0.000751079409383,0.084703333675861) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.053427711129189,0.020361209288239,0.080298319458961,-0.080206207931042,0.143773868680000,0.059070974588394,0.019990084692836,0.141421630978584,-0.080693438649178,0.010630653239787,0.005368391517550,0.000888878479600,-0.053955871611834,0.066934876143932,-0.001527789980173,-0.083698906004429) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.041848707944155,0.014826767146587,-0.003147114533931,-0.001450369716622,-0.060717478394508,-0.099933333694935,0.034628994762897,-0.025467742234468,0.029039958491921,0.143018633127213,-0.106014430522919,0.064279623329639,-0.040641974657774,0.005779122933745,-0.038309503346682,0.068175442516804) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.114643201231956,-0.045592989772558,-0.016207134351134,-0.027503618970513,-0.180733636021614,-0.109913527965546,0.132124423980713,-0.291226923465729,0.019212704151869,-0.001801203587092,-0.038819823414087,0.235855907201767,-0.089074686169624,0.078250944614410,0.047464657574892,0.034407190978527) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.123929321765900,-0.085764355957508,-0.075177311897278,0.014253634028137,-0.023313321173191,-0.025013430044055,0.009462040849030,0.025468375533819,-0.031643260270357,-0.065844416618347,0.168199226260185,-0.039941020309925,-0.099860966205597,0.043044213205576,-0.158881738781929,0.000233406477491) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.063019216060638,0.264663994312286,0.061614297330379,-0.013953034766018,0.018195217475295,0.095688916742802,-0.075820989906788,-0.013974376022816,-0.066955350339413,0.072646908462048,0.182508468627930,0.010299714282155,0.139514446258545,-0.111002162098885,-0.020851790904999,-0.027325697243214) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.183665499091148,0.052258040755987,0.226835966110229,0.168219074606895,-0.203408032655716,-0.117577292025089,0.014146557077765,-0.074929557740688,-0.094235517084599,0.014376189559698,-0.015380662865937,-0.054652377963066,-0.013769435696304,-0.020277757197618,0.085972733795643,-0.195083126425743) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.147120818495750,0.031029932200909,-0.001367767341435,0.026890218257904,0.090753473341465,0.062046084553003,0.100097730755806,0.126008957624435,0.109247177839279,-0.014926660805941,-0.055431656539440,-0.028141511604190,0.047265190631151,-0.059903405606747,0.180334314703941,-0.000711389002390) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.029186563566327,-0.090880461037159,-0.135235056281090,-0.012459550052881,-0.016558231785893,0.037414945662022,-0.061026703566313,0.056188598275185,0.050180986523628,-0.050594035536051,-0.044599216431379,0.054703738540411,0.012818673625588,-0.115996584296227,0.075214602053165,-0.061826612800360) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.013273276388645,-0.041825093328953,0.035296000540257,-0.059808958321810,0.118791423738003,0.032358076423407,-0.006045900285244,-0.052820648998022,0.079318605363369,0.075365900993347,0.040533419698477,0.090952470898628,-0.016497712582350,0.131045639514923,0.085322685539722,-0.117771409451962) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.024480571970344,-0.038498923182487,-0.009809283539653,-0.163528114557266,-0.053943708539009,0.020447595044971,-0.187745705246925,-0.094706736505032,-0.078994259238243,0.025842996314168,0.041033376008272,0.143417328596115,0.048251610249281,0.069861456751823,-0.145488068461418,0.045029833912849) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.026154225692153,0.047416403889656,0.008111276663840,0.015355696901679,-0.031411871314049,-0.009487598203123,0.025132490321994,0.124078184366226,-0.060265421867371,-0.004123736638576,0.025479083880782,-0.052799165248871,-0.036554925143719,0.092391423881054,0.012116543017328,0.255839794874191) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.026088923215866,0.017473209649324,0.147674947977066,0.210908994078636,0.207493484020233,-0.062913328409195,0.047314282506704,-0.054677978157997,0.053155101835728,-0.006454090587795,0.073863923549652,-0.107095532119274,0.020628159865737,-0.142450347542763,0.019830765202641,-0.031322579830885) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.124526172876358,-0.018764486536384,0.127731919288635,0.074004955589771,0.011061266064644,0.003462983528152,-0.056896477937698,-0.255087673664093,-0.037067431956530,-0.277685672044754,-0.057210199534893,-0.129549682140350,-0.030447471886873,0.094463385641575,0.112003251910210,-0.136626571416855) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.005937580950558,0.059567052870989,-0.002345812041312,0.029364546760917,-0.084957979619503,-0.029768707230687,-0.346611946821213,-0.068415567278862,-0.060719944536686,0.118847832083702,0.032674763351679,0.042907085269690,0.030319623649120,-0.263294905424118,-0.232941254973412,0.058221545070410) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.095438405871391,-0.084691591560841,-0.058614108711481,-0.028779994696379,0.264349907636642,-0.001933789579198,0.002606870839372,0.253301560878754,0.112897358834743,0.021566737443209,0.076469451189041,0.075691215693951,0.123008437454700,-0.081267714500427,-0.053344272077084,0.199392452836037) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.035724937915802,-0.043440010398626,-0.062001440674067,-0.009435261599720,-0.204366192221642,-0.022893005982041,0.288602769374847,-0.023494325578213,-0.050883550196886,-0.093147352337837,0.037992339581251,-0.085029914975166,-0.198804542422295,-0.051791265606880,0.100889578461647,-0.143106341362000) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.034015085548162,-0.052606265991926,0.009342517703772,-0.003444905625656,-0.171439170837402,0.178259700536728,-0.032129857689142,-0.130236789584160,-0.004193525761366,-0.016148595139384,0.090822279453278,-0.112036734819412,-0.004346466623247,-0.010514318943024,0.091155543923378,-0.143617406487465) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.174362644553185,0.837753772735596,0.079449392855167,-0.669171333312988) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_2x_Photo] mapping 1_2

vec4 hook()
{
vec4 res = vec4(0.081288151443005,-0.027720104902983,-0.020472653210163,-0.304777503013611);
res += mat4(0.061914008110762,0.048812579363585,-0.266689687967300,0.022755650803447,-0.057983752340078,0.158215805888176,0.054067779332399,-0.025060374289751,-0.045134834945202,0.208550244569778,0.006679660174996,0.080772861838341,-0.020561547949910,0.006074030417949,0.131229430437088,0.061001989990473) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.151659563183784,0.027533283457160,0.139512628316879,0.230094373226166,-0.025591077283025,-0.139200627803802,0.094405822455883,0.074313037097454,-0.125157833099365,0.261373877525330,-0.088434956967831,-0.024244906380773,-0.103972308337688,0.048924654722214,-0.047121405601501,0.058157537132502) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.028261171653867,0.148276254534721,-0.051868870854378,0.075580820441246,0.051904227584600,-0.226200789213181,0.108637981116772,-0.330709546804428,-0.003097122069448,-0.105879291892052,0.003756317542866,-0.075769685208797,-0.145753934979439,-0.016218628734350,-0.061461951583624,-0.185900956392288) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.170765757560730,-0.223686307668686,-0.059167034924030,-0.244907960295677,0.076130747795105,-0.028862901031971,-0.037144657224417,-0.176928699016571,-0.083645068109035,-0.157051712274551,-0.017936812713742,-0.111513368785381,-0.013665475882590,0.025325462222099,0.065010279417038,0.043925479054451) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.087340831756592,-0.174111843109131,-0.072894960641861,-0.132739871740341,0.078426219522953,0.273350924253464,-0.010572641156614,0.229490727186203,0.061302948743105,-0.029013499617577,-0.067235365509987,-0.047832023352385,0.083315797150135,0.174843549728394,-0.067888140678406,0.192615076899529) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.101850941777229,-0.040710654109716,0.006106254179031,0.208209544420242,-0.046734135597944,-0.026573386043310,-0.081043548882008,0.157075211405754,0.132421135902405,0.057483419775963,-0.005896343383938,0.037345379590988,0.025868033990264,0.033434767276049,-0.079916298389435,0.034502517431974) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.070061862468719,-0.001155968056992,0.017500445246696,0.035861197859049,-0.067207880318165,-0.180567979812622,-0.011979066766798,-0.116677828133106,-0.067477926611900,0.008028958924115,0.037223722785711,0.191468670964241,0.019760645925999,0.022367108613253,0.026753606274724,-0.025378096848726) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.002558781765401,-0.142165496945381,0.089564651250839,0.081983052194118,-0.024591488763690,0.109617590904236,-0.080913446843624,-0.193893700838089,-0.073817893862724,-0.053710434585810,-0.012648208998144,0.183541193604469,0.023986168205738,0.079973436892033,-0.072054743766785,0.293798714876175) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.098759092390537,0.037047877907753,-0.009274875745177,0.128561913967133,0.089903809130192,0.047207679599524,0.062725789844990,-0.046910103410482,-0.045096296817064,-0.068993277847767,-0.009482090361416,-0.196797430515289,-0.100900121033192,0.038195259869099,0.048661436885595,0.179919168353081) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.162876948714256,0.174792364239693,0.223853677511215,-0.063709251582623,0.150150716304779,-0.025831602513790,0.092687875032425,0.013798231258988,-0.095139123499393,0.031431794166565,0.071221463382244,0.083863981068134,-0.057876829057932,-0.021382514387369,-0.070990398526192,-0.108271233737469) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.213647305965424,-0.335592240095139,-0.051343325525522,0.016789775341749,0.022949734702706,-0.075604163110256,0.083355553448200,0.064305990934372,-0.172248020768166,-0.319943338632584,-0.076166056096554,0.018814062699676,0.043826140463352,-0.058445014059544,-0.187995448708534,-0.016790561378002) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.051646810024977,-0.019560458138585,0.225243762135506,-0.021187329664826,-0.002231751568615,-0.072596698999405,0.160367995500565,0.003671228419989,-0.055408395826817,0.164252206683159,-0.053634569048882,-0.017603026703000,0.020120138302445,-0.089824229478836,0.060350753366947,-0.013304043561220) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.066600456833839,0.087286546826363,-0.081702992320061,-0.190918281674385,0.100146599113941,-0.085489340126514,-0.029375426471233,0.048638913780451,0.141949757933617,0.133072152733803,-0.059394236654043,0.085980385541916,0.111645773053169,0.010945293121040,-0.037724122405052,-0.086505226790905) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.235551014542580,0.297829687595367,0.022776078432798,0.345023930072784,-0.123178407549858,-0.098968528211117,0.028880987316370,0.031875226646662,0.074147552251816,0.030652847141027,-0.192652434110641,0.451984107494354,0.170313000679016,-0.159019887447357,0.077010959386826,-0.063054747879505) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.208602637052536,-0.058131724596024,0.028499502688646,-0.155578240752220,0.001189533271827,-0.105786919593811,0.017656525596976,-0.088836848735809,-0.162568300962448,0.094787627458572,0.141356214880943,-0.142607629299164,-0.082546323537827,-0.168657481670380,-0.058062564581633,-0.034117642790079) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.045846756547689,-0.041832573711872,-0.187126740813255,0.001963790040463,-0.102937273681164,0.015998018905520,-0.085621178150177,0.284918159246445,-0.034301664680243,-0.042827267199755,-0.038752537220716,-0.056357339024544,-0.029689624905586,0.062459696084261,-0.030193867161870,-0.069754630327225) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.079724498093128,0.079757258296013,0.055361147969961,-0.241864889860153,-0.218909367918968,-0.016319770365953,-0.033247705549002,0.162767067551613,0.074986718595028,0.014964322559536,0.015763148665428,-0.085310705006123,-0.006045538932085,-0.105514742434025,0.022744940593839,-0.219344049692154) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.005075176712126,0.054105434566736,-0.063142292201519,0.001616119290702,-0.135119140148163,-0.058664459735155,-0.004152331501245,0.018363714218140,0.027994683012366,-0.024889674037695,0.125087380409241,-0.097308777272701,-0.040453158318996,-0.035672929137945,-0.006941891741008,-0.206584528088570) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.035792082548141,-0.238857313990593,-0.113946132361889,-0.094287402927876,0.168660432100296,-0.039973523467779,0.021521408110857,0.028705988079309,0.017650341615081,-0.021862586960196,-0.375442087650299,0.013260929845273,-0.012191980145872,0.095225468277931,0.102542608976364,-0.121110476553440) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.151360288262367,0.106766648590565,0.040784072130919,-0.228879466652870,0.081364795565605,0.029557080939412,0.105395160615444,-0.064429752528667,-0.014065459370613,-0.056109178811312,0.177114844322205,0.064804226160049,0.120518155395985,-0.173654437065125,-0.092085249722004,0.080070041120052) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.012684165500104,-0.126500502228737,-0.082710713148117,0.001057653804310,-0.007409173529595,0.042456734925508,0.027907839044929,0.098551794886589,0.074014455080032,-0.205914765596390,-0.011673058383167,-0.122984386980534,-0.127783268690109,-0.145586669445038,0.084879204630852,-0.240934669971466) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.127539426088333,-0.001115718856454,0.022896407172084,-0.106899373233318,0.060386821627617,-0.135905861854553,0.094226881861687,-0.143906310200691,0.041148517280817,-0.105136945843697,-0.008267949335277,0.008774527348578,-0.100888401269913,0.112242527306080,-0.019613156095147,-0.043789576739073) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.051103055477142,0.152334019541740,-0.112513676285744,0.024143517017365,0.011647284030914,-0.133654758334160,0.163290843367577,-0.052948232740164,-0.003666956443340,0.114151522517204,0.246162697672844,0.090600766241550,0.197045132517815,0.191401496529579,-0.121141076087952,0.331563174724579) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.015591531991959,0.078934423625469,-0.032008286565542,0.085857398808002,-0.003286710008979,-0.055633679032326,0.067896321415901,-0.088958241045475,-0.043872218579054,-0.134960502386093,0.064415045082569,0.102315388619900,-0.317853868007660,0.062023241072893,0.037847556173801,-0.101864010095596) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.032802432775497,-0.060283835977316,-0.019999681040645,0.178164243698120,-0.073473699390888,0.100475430488586,-0.166917979717255,-0.009576180018485,0.015869280323386,-0.061441201716661,0.006061386782676,0.028900971636176,0.113857328891754,0.063301309943199,-0.076414644718170,-0.133689165115356) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.098053388297558,0.053768631070852,-0.140081912279129,0.376637428998947,-0.032442156225443,-0.009816605597734,0.074366606771946,-0.073472388088703,-0.052355628460646,0.068359650671482,0.066581770777702,-0.089478179812431,-0.034823901951313,0.063416309654713,-0.065883830189705,-0.038004212081432) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.158228278160095,0.033665407449007,0.112656638026237,0.060747671872377,0.021771790459752,0.094715744256973,-0.006665431428701,-0.134989261627197,0.041306648403406,-0.076928339898586,-0.017797917127609,-0.029077062383294,0.008610806427896,-0.107188768684864,0.047194957733154,-0.161727547645569) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.019779685884714,-0.029832439497113,-0.050648417323828,-0.022436879575253,0.075069911777973,-0.074134506285191,0.210202261805534,-0.009223379194736,-0.036698028445244,0.061367608606815,0.163808465003967,-0.093054167926311,0.011759047396481,0.015868002548814,-0.070767469704151,-0.048942349851131) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.125034615397453,0.041749700903893,0.138240724802017,0.053102701902390,-0.005671605933458,-0.233518689870834,-0.030425254255533,-0.231842145323753,-0.042242858558893,0.033394116908312,-0.008491197600961,0.079262733459473,0.145872250199318,-0.054118361324072,-0.197459667921066,0.051641840487719) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.058356929570436,-0.085868075489998,-0.031792309135199,0.131552875041962,0.079287067055702,0.201538220047951,-0.007083949167281,0.026440816000104,-0.090750865638256,0.283636331558228,-0.064060188829899,0.178510650992393,-0.115681603550911,-0.258444994688034,-0.029187453910708,-0.103102669119835) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.111484885215759,0.070171952247620,0.065147057175636,0.162588879466057,-0.035940904170275,-0.124663136899471,0.185691848397255,-0.045482542365789,-0.048765048384666,-0.066480048000813,-0.046442564576864,-0.119464680552483,-0.055089198052883,0.051505055278540,-0.031815331429243,0.018436918035150) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.038859181106091,0.094511009752750,0.127460703253746,0.304346174001694,0.078546494245529,-0.128638461232185,-0.029376884922385,0.241272315382957,0.042014125734568,-0.164807543158531,-0.121324814856052,-0.114585414528847,0.085777953267097,0.185672059655190,-0.003202920546755,0.117936737835407) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.128828912973404,0.074295513331890,-0.201537877321243,0.309371769428253,-0.286955058574677,0.055893156677485,-0.011555931530893,-0.057093150913715,-0.256679207086563,0.232931628823280,0.062315829098225,-0.085498668253422,0.068442873656750,-0.053575504571199,0.026126103475690,0.036778956651688) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.056787021458149,0.061140820384026,0.138686478137970,0.010056518018246,0.067800700664520,-0.052695509046316,-0.038473155349493,-0.047902643680573,-0.034263100475073,-0.100957967340946,0.064609766006470,-0.066528648138046,0.018107585608959,0.140919342637062,0.117268219590187,-0.002994002541527) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.116955772042274,-0.015296607278287,-0.070153109729290,0.236062496900558,0.035564277321100,-0.152223333716393,-0.024631392210722,-0.063420079648495,0.065873183310032,-0.254140853881836,-0.319698452949524,-0.006681662984192,-0.162263929843903,-0.087293758988380,0.112415716052055,-0.166194841265678) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.108480595052242,0.217033833265305,-0.078310973942280,0.173396632075310,0.018195776268840,-0.003492688294500,-0.052525028586388,0.054569303989410,-0.089164614677429,0.076005913317204,-0.091853626072407,0.044838186353445,0.033394444733858,0.150618880987167,-0.038038130849600,0.002398404991254) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.022788170725107,0.013488277792931,0.090994402766228,0.041128221899271,-0.124311804771423,0.278757691383362,-0.031189750880003,-0.037967834621668,0.004459118004888,-0.074386909604073,0.075771279633045,0.010815402492881,-0.049139540642500,0.175426945090294,0.220791846513748,0.039025690406561) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.075678691267967,-0.133790507912636,-0.068288221955299,-0.145781353116035,0.134318470954895,0.087516628205776,-0.008252782747149,-0.002968912711367,0.028944237157702,0.065377585589886,-0.065774388611317,0.059588119387627,0.089332699775696,-0.074166551232338,0.010842400602996,-0.086204811930656) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.009052800014615,0.010368765331805,0.072375036776066,0.064746968448162,0.015271153301001,-0.020636532455683,-0.069011457264423,0.024686548858881,0.001789425732568,0.128029450774193,0.062746308743954,0.064591452479362,-0.072198905050755,0.120603740215302,0.073624610900879,0.016684632748365) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.077144756913185,-0.188253074884415,0.113607496023178,-0.099337771534920,-0.226114660501480,0.065936714410782,0.069424003362656,-0.096817754209042,0.144843354821205,-0.113910488784313,-0.119938313961029,-0.068418994545937,0.126011550426483,-0.105892524123192,0.071848340332508,-0.134418353438377) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.116746917366982,0.378791540861130,-0.029434885829687,0.273217201232910,0.250326752662659,-0.011758554726839,-0.037110522389412,-0.071723170578480,-0.144672006368637,0.039095450192690,0.028880294412374,0.006748934276402,0.129101932048798,-0.116704218089581,-0.202547520399094,-0.004356476478279) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.142551347613335,0.031188104301691,0.009945837780833,-0.164105176925659,0.091875754296780,-0.103005401790142,-0.030746379867196,-0.082241646945477,0.014025007374585,-0.095650844275951,-0.032807055860758,-0.000987202278338,-0.040645085275173,-0.026422474533319,0.033351223915815,0.017548155039549) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.144309923052788,-0.203140407800674,-0.163879364728928,0.142131805419922,-0.111815720796585,-0.019779305905104,0.025444092229009,-0.062294330447912,-0.131306514143944,-0.183164179325104,-0.007569527719170,0.071893520653248,-0.084641247987747,-0.103218026459217,0.106350272893906,-0.103349901735783) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.007927548140287,-0.000976523151621,0.014889247715473,-0.256062299013138,0.126321703195572,-0.132260888814926,-0.082919806241989,0.005664109718055,0.091845162212849,0.025412186980247,0.099104173481464,0.071147799491882,-0.085202418267727,-0.140718430280685,-0.037082444876432,-0.048336774110794) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.069308757781982,0.061894807964563,0.001551157096401,0.062803998589516,0.019203662872314,-0.142241954803467,0.035208612680435,0.001358733279631,0.054359491914511,-0.236634463071823,0.005423729773611,0.039782561361790,0.090621560811996,-0.023715317249298,0.101891152560711,-0.017294077202678) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.086177155375481,-0.122421413660049,-0.068583674728870,-0.072149865329266,0.036682005971670,0.206930011510849,-0.144910484552383,0.015758700668812,-0.040772568434477,0.100886203348637,-0.127155050635338,0.064921565353870,-0.048490371555090,-0.079798839986324,-0.349705427885056,0.024317998439074) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.046690098941326,-0.006052957382053,-0.052913028746843,-0.059063181281090,-0.086320899426937,0.400354772806168,-0.016005314886570,0.034168917685747,0.049280490726233,-0.064027190208435,0.093106612563133,0.501023232936859,-0.147755622863770,0.434317141771317,0.254042804241180,0.052771706134081) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.082006230950356,0.109216712415218,-0.046614322811365,0.014957214705646,0.250871717929840,0.205789878964424,-0.001260289340280,0.050456259399652,0.059247668832541,0.031722310930490,0.272328704595566,-0.063344672322273,0.050435449928045,-0.176410362124443,0.066959783434868,-0.086810663342476) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.143461763858795,-0.066232316195965,0.004506531171501,-0.005047000478953,-0.230439051985741,0.001782904146239,-0.130821093916893,-0.021782819181681,0.037538688629866,-0.121660910546780,-0.040265724062920,0.157683476805687,0.223197475075722,-0.110776022076607,-0.003899224568158,0.218334600329399) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.128918915987015,-0.057814531028271,0.083303056657314,-0.061694331467152,-0.096449397504330,0.035064034163952,0.003282385645434,-0.156515881419182,0.043037131428719,-0.234302520751953,0.284285128116608,-0.086998842656612,-0.298463553190231,0.001822473248467,0.213883951306343,-0.317495077848434) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.034906476736069,0.065867401659489,0.007758271414787,-0.099496945738792,0.189903140068054,0.034920226782560,0.070338293910027,-0.059702530503273,0.124915592372417,-0.192189604043961,0.015838764607906,-0.249332696199417,0.499235451221466,0.088244453072548,-0.097204416990280,0.235743314027786) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.069962054491043,-0.010487897321582,-0.044485814869404,-0.087268799543381,-0.025882782414556,-0.162277057766914,0.086868405342102,-0.074477992951870,0.062481418251991,-0.033013373613358,0.071876466274261,-0.040848765522242,-0.104029648005962,0.051862601190805,0.028247389942408,0.018564321100712) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.027659643441439,-0.082328952848911,-0.081365652382374,-0.012827518396080,-0.091466456651688,-0.093866661190987,0.065564177930355,0.022959370166063,-0.080947421491146,-0.269643276929855,-0.049683008342981,-0.090921171009541,-0.080083996057510,-0.023836152628064,-0.024832352995872,-0.036192622035742) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.022627096623182,0.085823416709900,-0.073232524096966,0.015921931713820,0.243855670094490,-0.101777747273445,0.097609050571918,-0.017359543591738,-0.021620681509376,-0.126399889588356,-0.127283543348312,-0.102611638605595,-0.083355277776718,-0.053467776626348,-0.033306233584881,-0.058790776878595) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.528837621212006,-0.014049553312361,-0.376749783754349,-0.003520549740642) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_2x_Photo] mapping 1_3

vec4 hook()
{
vec4 res = vec4(-0.095257230103016,-0.795208096504211,0.034166868776083,-0.149206638336182);
res += mat4(0.092693574726582,0.059417057782412,-0.353571057319641,0.102082140743732,-0.068760573863983,0.074865669012070,0.026297610253096,0.039649806916714,0.043738875538111,-0.024038245901465,0.017840817570686,0.083849415183067,-0.053471304476261,0.051638197153807,-0.047916118055582,-0.028981260955334) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.141656070947647,0.005351617932320,-0.124978773295879,-0.000068365246989,0.115445114672184,-0.007124273572117,0.030274594202638,-0.069209009408951,0.002421942772344,0.030076542869210,0.031703487038612,0.021236807107925,0.040041774511337,-0.017456663772464,0.169320777058601,-0.064806431531906) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.063858956098557,0.097935907542706,-0.019074691459537,-0.046103443950415,-0.051139928400517,-0.009343898855150,-0.108364731073380,-0.127602413296700,0.058679834008217,0.067606031894684,-0.069056183099747,-0.035843078047037,0.020336514338851,-0.074895948171616,0.066382780671120,-0.070046946406364) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.228853762149811,0.024831641465425,-0.244283601641655,0.099885441362858,0.004845690447837,0.123135700821877,0.075966969132423,0.048500422388315,-0.055201180279255,0.050686027854681,-0.167743578553200,0.171292066574097,-0.018667239695787,-0.011452358216047,0.124771647155285,-0.014839183539152) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.218863472342491,0.023740576580167,0.119997933506966,0.065490424633026,0.104886680841446,0.019321998581290,0.060959845781326,-0.187618881464005,-0.037767942994833,0.113553799688816,0.033382285386324,0.024127276614308,0.063504830002785,0.172302588820457,-0.130972355604172,-0.009589215740561) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.033157937228680,0.136763319373131,0.133920341730118,-0.017049193382263,-0.034261401742697,0.011686536483467,-0.058047112077475,0.209695890545845,-0.053080532699823,0.061175622045994,0.073210172355175,0.050754163414240,0.022035909816623,0.045802090317011,0.074184224009514,0.048657502979040) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.131700962781906,0.031963594257832,0.087576143443584,0.011785192415118,0.067062884569168,0.027686258777976,-0.110389873385429,0.038390450179577,-0.042934130877256,-0.017718430608511,-0.010705945082009,0.130467593669891,-0.014486021362245,0.028764482587576,0.116520687937737,0.091436892747879) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.001634386484511,0.054384872317314,0.029907112941146,-0.062138099223375,0.061362072825432,0.014677199535072,0.063402943313122,-0.102669939398766,0.099351078271866,0.065392099320889,-0.078978814184666,0.167817369103432,0.050520412623882,0.005048985127360,-0.145273849368095,-0.163255468010902) * FEATURE1_texOff(vec2(1,0));
res += mat4(-0.029743958264589,0.106560066342354,-0.032755345106125,-0.091194644570351,-0.131085917353630,0.026257399469614,0.034899879246950,-0.066538251936436,0.027720460668206,-0.001310923253186,0.032376680523157,-0.035268153995275,-0.019849641248584,0.008902212604880,-0.174369037151337,0.277272045612335) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.073354177176952,0.090980172157288,0.084486305713654,-0.239859312772751,-0.116920568048954,0.012340096756816,-0.114974521100521,0.057587563991547,0.037462517619133,-0.008833427913487,0.096032448112965,-0.316670835018158,0.008988661691546,-0.084841310977936,0.064603105187416,0.270502477884293) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.137178823351860,0.079078413546085,-0.203425884246826,0.082840144634247,-0.115763321518898,0.044332250952721,-0.104494974017143,-0.091792717576027,0.187374442815781,-0.044582538306713,-0.099296078085899,-0.068531334400177,-0.116235345602036,0.316089481115341,-0.032763168215752,-0.275963097810745) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.149944663047791,0.040248170495033,0.016412284225225,-0.079803250730038,-0.103078879415989,0.042062725871801,-0.004823324270546,-0.064204238355160,-0.009131852537394,0.047320384532213,-0.021714383736253,0.014486372470856,0.002553641097620,0.347890555858612,-0.015964565798640,0.002891461830586) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.071094267070293,-0.000268394855084,0.218715727329254,0.171266213059425,0.133079200983047,-0.024461409077048,0.074385240674019,0.297468245029449,0.034593351185322,-0.203391551971436,0.050136301666498,-0.132676914334297,-0.035868231207132,-0.159343659877777,0.150349944829941,0.171550869941711) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.181305393576622,-0.397212624549866,0.001067050150596,0.103450849652290,0.056784287095070,0.036369062960148,0.068263411521912,0.078671872615814,0.049724061042070,-0.199062824249268,0.081448286771774,0.154436022043228,0.070088192820549,0.026581572368741,0.107797972857952,-0.298822343349457) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.059964153915644,0.089847005903721,0.079624176025391,0.097101770341396,0.021863991394639,-0.001189724425785,0.129186108708382,0.058098759502172,-0.152705997228622,-0.101762294769287,-0.022172460332513,0.067487969994545,0.040250383317471,0.097674712538719,-0.055168095976114,-0.187738791108131) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.044552177190781,-0.067562840878963,-0.313444614410400,0.000790752063040,0.070582523941994,-0.080512143671513,-0.075548022985458,0.071676753461361,0.114168368279934,0.001145488349721,-0.113042913377285,-0.039512827992439,-0.009202580899000,-0.111410073935986,-0.084282338619232,0.217339530587196) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.086927406489849,0.100361630320549,0.070295415818691,-0.063764363527298,0.066497437655926,0.006098767276853,-0.075735077261925,-0.053886957466602,-0.042401410639286,0.014149636961520,0.097361259162426,-0.030001522973180,0.001790581853129,-0.286565542221069,-0.031879924237728,0.004145441111177) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.078873783349991,0.003826343920082,-0.010663267225027,0.017147278413177,-0.110904216766357,0.080009326338768,-0.115351885557175,-0.071069166064262,-0.087132573127747,-0.095894865691662,0.005731315352023,0.005621583200991,-0.101395793259144,-0.174175336956978,0.138068377971649,0.092024050652981) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.077018879354000,0.020069710910320,0.128517121076584,-0.055230434983969,-0.105099558830261,-0.191614061594009,0.032652046531439,0.079778708517551,-0.158592626452446,0.114042192697525,-0.039372634142637,0.107846178114414,-0.065132491290569,0.048839911818504,0.109100401401520,-0.066365338861942) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.129905849695206,-0.089928008615971,0.019868755713105,-0.080259673297405,-0.011331663466990,-0.021921718493104,-0.030503768473864,-0.009629292413592,0.157401576638222,0.063560411334038,-0.086027435958385,-0.000328833819367,0.061945725232363,-0.110495999455452,-0.017435638234019,-0.038377549499273) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.145139008760452,0.059299264103174,-0.097180664539337,-0.002921886742115,-0.073214568197727,-0.100763022899628,0.063921548426151,-0.018458398059011,0.005860927980393,0.245846986770630,0.016052376478910,-0.112144030630589,-0.043270006775856,0.110777698457241,-0.034277617931366,0.003320044605061) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.144176155328751,0.076845124363899,-0.037512429058552,0.053952045738697,-0.129514679312706,-0.016848687082529,0.153606489300728,0.214664608240128,-0.066450074315071,-0.145351409912109,0.105849951505661,0.094442941248417,-0.067895926535130,-0.027203619480133,0.065399684011936,0.100656591355801) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.178198203444481,0.017573729157448,-0.158869832754135,0.120163314044476,-0.075904093682766,0.097006022930145,0.023219242691994,-0.069050841033459,0.062059901654720,-0.186649709939957,0.044761452823877,0.111880749464035,0.073271580040455,-0.315408051013947,0.039068583399057,0.117877729237080) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.176474034786224,0.034340299665928,0.058569192886353,0.082541532814503,-0.058945633471012,-0.042047683149576,-0.042059030383825,0.003895241534337,0.072062477469444,-0.024013003334403,-0.177312299609184,0.156504437327385,0.030647294595838,0.031304866075516,-0.182004928588867,0.048455800861120) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.015894556418061,0.137347012758255,0.201999440789223,0.240692630410194,-0.037162207067013,-0.009426617063582,-0.063791580498219,0.101161569356918,0.043195243924856,0.009019660763443,-0.041089504957199,-0.046981751918793,0.121910184621811,0.067066907882690,-0.122737884521484,0.093769840896130) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.031150877475739,-0.002239609602839,-0.031826637685299,0.094451531767845,0.053245540708303,0.142822593450546,0.062687091529369,0.025606710463762,-0.156682148575783,0.126950532197952,0.009979973547161,-0.102565251290798,-0.038591239601374,0.001201678300276,0.099338553845882,0.039841216057539) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.085951618850231,-0.008743165992200,0.057125598192215,0.014061631634831,0.134101703763008,-0.088901281356812,0.063268586993217,-0.006180442869663,0.107705771923065,-0.173623576760292,-0.026528134942055,-0.111290007829666,0.058464486151934,0.159374833106995,0.096858672797680,0.071848034858704) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.001261427882127,-0.065786458551884,-0.015897694975138,-0.051407568156719,0.164753362536430,0.015818810090423,-0.149582654237747,-0.022709207609296,0.013330673798919,0.020892925560474,0.004148035775870,-0.038808729499578,-0.103423006832600,0.170605346560478,0.062251180410385,-0.205904588103294) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.025531811639667,-0.164230182766914,-0.093233883380890,-0.061759669333696,-0.009876222349703,0.274851143360138,-0.139390647411346,-0.107061967253685,0.094430863857269,0.075897954404354,-0.007489087060094,0.163013890385628,0.055999241769314,-0.036685235798359,-0.176400035619736,0.043149668723345) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.087721168994904,-0.239010766148567,0.033603850752115,0.072165057063103,-0.136815875768661,-0.191835075616837,0.068014524877071,0.019146498292685,-0.154998406767845,0.009907187893987,-0.037987243384123,0.054641071707010,0.085498824715614,0.192640066146851,-0.014811400324106,0.087345652282238) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.050978869199753,-0.200749009847641,0.032688084989786,-0.082166492938995,0.081114493310452,-0.044249683618546,0.145388498902321,0.103383108973503,-0.005059354938567,0.127661824226379,0.052052203565836,-0.017104892060161,-0.006928008049726,0.047148536890745,-0.012350814417005,-0.037817925214767) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.061169140040874,-0.074103891849518,0.081537686288357,0.008070938289165,0.133813455700874,-0.178069263696671,-0.197557404637337,0.118080943822861,0.088055990636349,0.067233987152576,-0.161910280585289,0.104998789727688,-0.079690761864185,-0.213953047990799,0.172836601734161,0.031386405229568) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.070390485227108,-0.257595300674438,-0.023737402632833,0.102414533495903,-0.119106210768223,0.078631825745106,-0.097781419754028,0.025437202304602,-0.077623508870602,-0.075402133166790,-0.022134393453598,0.043301023542881,0.217326939105988,-0.143380343914032,-0.151917070150375,0.125325039029121) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.039050452411175,-0.077079810202122,0.006746318191290,-0.137151256203651,-0.104516580700874,-0.036376111209393,0.110390298068523,-0.004321011714637,0.178144261240959,0.032042697072029,0.011661015450954,0.181294843554497,-0.115313671529293,-0.076537765562534,-0.120504081249237,-0.057362373918295) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.042007446289063,-0.166097193956375,-0.028868000954390,0.011937886476517,0.021370429545641,-0.011054854840040,0.077341847121716,-0.033368583768606,0.102582871913910,0.025354135781527,0.130480885505676,0.234519332647324,-0.075059726834297,0.129980489611626,0.033541291952133,0.068654909729958) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.091606467962265,-0.257668137550354,-0.028672393411398,0.054814331233501,-0.097839400172234,0.064503610134125,0.087853096425533,-0.002701124874875,-0.013737508095801,-0.019820928573608,0.095931321382523,0.054718632251024,0.004813543520868,-0.025637315586209,0.120444536209106,-0.038582392036915) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.027018228545785,-0.043176636099815,0.088787756860256,-0.067345134913921,0.056112818419933,0.020486427471042,0.091894775629044,0.019236290827394,-0.045966070145369,0.062504000961781,-0.344200253486633,0.011333382688463,-0.025571189820766,-0.130228132009506,0.001596126705408,0.093261167407036) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.125501781702042,0.249558240175247,-0.008539069443941,-0.018885571509600,0.108332231640816,-0.079493351280689,0.087730363011360,0.025069456547499,-0.053118702024221,-0.053358603268862,0.156038612127304,0.084083355963230,-0.089962676167488,-0.175020098686218,-0.078123398125172,0.018182408064604) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.009855047799647,-0.057860769331455,0.027702683582902,-0.053612697869539,-0.119303569197655,0.085437186062336,0.021233884617686,-0.033707357943058,0.108388707041740,-0.080402992665768,-0.093707598745823,-0.053404532372952,-0.009966185316443,0.030674057081342,0.018386231735349,-0.103843495249748) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.169687911868095,0.116322681307793,0.170690074563026,0.008490979671478,0.086893431842327,0.230794981122017,-0.112017162144184,-0.083004377782345,-0.037703234702349,-0.158494666218758,0.046122960746288,0.145674884319305,-0.021286591887474,-0.178182706236839,-0.064058378338814,0.047187481075525) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.049442332237959,-0.320265948772430,-0.020214982330799,0.127875879406929,0.087488971650600,-0.023325495421886,-0.046539921313524,0.018064804375172,-0.029979687184095,0.097068279981613,-0.069057427346706,0.043520018458366,-0.039563722908497,-0.109229661524296,-0.204955890774727,-0.155479207634926) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.025065127760172,-0.031234122812748,-0.116027072072029,0.112245917320251,0.006454387679696,-0.040273435413837,-0.031563058495522,0.029334524646401,-0.042173277586699,0.158491328358650,-0.065586417913437,-0.068690724670887,0.063032850623131,0.019199851900339,0.174269199371338,-0.119833238422871) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.112995758652687,-0.129482135176659,-0.406547635793686,-0.048251789063215,0.087853699922562,0.003759943414479,0.005071421619505,0.011576191522181,0.009161800146103,0.123678348958492,-0.086575902998447,0.107344731688499,0.113276496529579,-0.068364977836609,-0.055019114166498,0.116765134036541) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.207677885890007,0.213087156414986,0.145576506853104,-0.049285188317299,-0.011729746125638,-0.306971430778503,0.046005491167307,-0.034442491829395,0.099326893687248,0.072283864021301,0.145183786749840,-0.000258715183008,0.016427684575319,0.038226734846830,0.037331923842430,-0.124315544962883) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.108404643833637,-0.026089303195477,-0.003597618313506,0.087202884256840,-0.070141814649105,0.037206429988146,-0.056598745286465,-0.097335964441299,-0.017618555575609,-0.073119387030602,0.102161340415478,-0.016683574765921,0.014931019395590,0.062280558049679,-0.031052453443408,-0.153846353292465) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.008654862642288,-0.088056348264217,0.009556349366903,-0.023937435820699,-0.161329165101051,-0.079210489988327,0.113171428442001,0.148442178964615,-0.010255146771669,0.109019383788109,0.135263264179230,0.142877817153931,-0.001531149027869,0.010858956724405,0.109687887132168,0.122608773410320) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.073763027787209,-0.095801189541817,0.126067548990250,0.049716051667929,-0.032156363129616,-0.084844328463078,0.030213737860322,-0.067210741341114,-0.040912616997957,-0.020260130986571,0.010129531845450,0.078289583325386,-0.092163085937500,-0.058551553636789,0.082909904420376,-0.206055283546448) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.015922175720334,-0.033445544540882,0.071211285889149,-0.103148303925991,0.263074964284897,-0.107701778411865,-0.040409468114376,-0.148520767688751,0.107460446655750,-0.097102843225002,0.026479970663786,0.052380502223969,0.294958084821701,0.121018767356873,-0.161291807889938,0.053070299327374) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.022278929129243,-0.155616074800491,-0.010918635874987,-0.191360875964165,-0.156027480959892,0.213501974940300,-0.155300274491310,0.058851346373558,-0.147603645920753,0.088083900511265,-0.196869164705276,0.117915168404579,0.072240948677063,-0.063959524035454,-0.260942488908768,-0.049414403736591) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.053459968417883,-0.279217362403870,-0.146045923233032,0.052322652190924,-0.067326456308365,0.486268818378448,-0.041480112820864,-0.208913728594780,-0.208231419324875,0.095562130212784,0.189622297883034,0.054013345390558,-0.195786103606224,0.246127039194107,0.153995975852013,-0.095306985080242) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.059539277106524,-0.192535281181335,-0.068701960146427,0.020665181800723,0.185668572783470,-0.027841413393617,0.032586876302958,-0.225291624665260,-0.127176582813263,-0.052716169506311,-0.037852313369513,-0.022518401965499,0.169252038002014,-0.359072744846344,-0.012252066284418,0.037474084645510) * FEATURE6_texOff(vec2(0,1));
res += mat4(0.158264428377151,0.111245736479759,0.068404920399189,-0.083999961614609,-0.109994195401669,0.098071344196796,0.085815355181694,0.045149922370911,-0.049791745841503,0.010688431560993,0.045176587998867,-0.108889125287533,-0.058430440723896,-0.099240481853485,-0.015534256584942,-0.033551864326000) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.021107284352183,-0.061235990375280,0.013577238656580,0.077064424753189,-0.188614487648010,0.061932820826769,-0.035961683839560,-0.128562688827515,0.001121124834754,-0.067320622503757,-0.114003531634808,-0.130534023046494,-0.025467408820987,0.080714121460915,-0.088123738765717,0.026906264945865) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.115168727934361,-0.093307666480541,0.030743654817343,0.050316505134106,-0.018862854689360,-0.087940908968449,0.004916445352137,-0.138200879096985,0.055841688066721,-0.065020605921745,0.017256552353501,-0.030746892094612,-0.081205911934376,0.045231908559799,0.058174155652523,-0.033674649894238) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.163764417171478,-0.000199682704988,-0.494638413190842,0.031418312340975) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_2x_Photo] mapping 1_4

vec4 hook()
{
vec4 res = vec4(0.066777408123016,-0.082937903702259,0.014709247276187,-0.024535376578569);
res += mat4(0.050445873290300,-0.225235015153885,0.200818479061127,0.072457857429981,-0.058827437460423,0.068163573741913,0.018300231546164,-0.000507592223585,0.060081649571657,-0.186914741992950,0.006124687381089,-0.011232448741794,0.009995679371059,-0.041555278003216,0.068222783505917,-0.038817424327135) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.187171250581741,-0.263526231050491,0.150289937853813,0.043253302574158,0.023612061515450,0.032027333974838,-0.057680319994688,0.065561018884182,-0.215945497155190,0.088269315660000,0.131476715207100,0.060924313962460,0.037976775318384,-0.078125283122063,-0.003838542615995,-0.053785622119904) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.099444299936295,-0.173235356807709,0.086722351610661,-0.071213819086552,-0.320302009582520,0.074755884706974,-0.049214538186789,0.086669310927391,-0.084533907473087,0.109013073146343,0.002871905220672,-0.104388587176800,-0.036266442388296,-0.106264278292656,0.001955170184374,-0.038038708269596) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.207051172852516,0.056304629892111,0.085783302783966,-0.060263164341450,-0.184635877609253,0.161625891923904,-0.042473476380110,-0.026660485193133,-0.183892577886581,-0.041588708758354,0.100716345012188,0.143552526831627,-0.055047530680895,-0.113447137176991,-0.024870960041881,-0.011448167264462) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.084214732050896,-0.181833282113075,0.161264166235924,-0.022735670208931,0.223606452345848,-0.053285017609596,-0.052558917552233,0.036941099911928,-0.035730861127377,0.007992218248546,0.179189190268517,-0.070406556129456,0.190088599920273,-0.017475647851825,0.070173196494579,-0.015502626076341) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.012557559646666,-0.340382725000381,0.063951447606087,-0.014326665550470,-0.046437446027994,-0.199409648776054,-0.110110186040401,-0.033956639468670,0.081969834864140,0.019913127645850,-0.047461509704590,-0.070326030254364,-0.257607787847519,-0.034682888537645,-0.232430204749107,0.117290019989014) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.057974934577942,-0.162886232137680,0.014458986930549,0.072851046919823,-0.152237072587013,-0.088414058089256,-0.094313696026802,0.011362179182470,0.249454870820045,0.046778809279203,0.036457210779190,-0.047107264399529,-0.034540023654699,-0.106639802455902,0.051207561045885,0.047072414308786) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.122171916067600,0.038391359150410,0.071416139602661,-0.014969405718148,-0.163333311676979,-0.026227198541164,0.013965361751616,0.020683744922280,-0.028258547186852,0.092582345008850,0.271097928285599,0.021031234413385,0.161047250032425,-0.049876585602760,-0.012946215458214,0.009127920493484) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.032671101391315,-0.009958471171558,-0.013545766472816,0.078899890184402,-0.045828700065613,-0.020864667370915,-0.055624343454838,-0.055158548057079,-0.089214742183685,0.020358592271805,-0.138725876808167,-0.000202284805709,-0.107414983212948,-0.066568396985531,-0.090853236615658,0.089368328452110) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.030555672943592,-0.108889445662498,-0.024960217997432,-0.086235001683235,0.119982086122036,0.066964842379093,-0.123345427215099,0.118866339325905,0.001449361909181,0.100535683333874,-0.022132478654385,0.058060351759195,0.080518819391727,-0.153383493423462,0.003590764245018,0.006631631869823) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.010152950882912,0.167131528258324,-0.111993171274662,0.032787516713142,0.102051138877869,0.114122979342937,0.158980265259743,0.122733063995838,0.017835948616266,0.045389100909233,-0.051542233675718,0.115514673292637,0.035973958671093,-0.142557427287102,-0.114521078765392,0.041675753891468) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.060907345265150,0.173151329159737,-0.043973065912724,0.055779803544283,0.087654642760754,0.126280337572098,-0.092837989330292,0.025604061782360,-0.105033144354820,-0.055116746574640,-0.081527933478355,-0.039494592696428,-0.059751626104116,-0.001364579889923,0.048943262547255,0.114859275519848) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.141777932643890,0.303595513105392,-0.150753647089005,0.039614703506231,-0.010871419683099,0.072431847453117,0.346613526344299,-0.041737150400877,0.131420791149139,0.037467379122972,0.012570675462484,0.078337639570236,0.025317927822471,-0.028815770521760,0.062255349010229,0.043340969830751) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.221420153975487,-0.073820523917675,-0.129959851503372,-0.370640575885773,0.049302235245705,0.077606514096260,0.288916349411011,-0.031136356294155,0.202104374766350,-0.172978326678276,0.074955880641937,0.134821981191635,0.000394422357203,-0.024565165862441,-0.062823936343193,-0.155928492546082) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.081486061215401,-0.061150677502155,-0.173336133360863,0.052302356809378,-0.045829456299543,-0.009572308510542,-0.031220240518451,0.100488066673279,-0.238514572381973,0.121849663555622,-0.086294718086720,-0.093480519950390,-0.074556373059750,-0.015403850004077,-0.018529467284679,-0.081930823624134) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.143201842904091,-0.156722456216812,-0.029503636062145,-0.027235699817538,0.166420966386795,-0.040713477879763,0.058561414480209,-0.057634457945824,-0.189063221216202,0.008102709427476,-0.095105186104774,-0.025831330567598,0.233448669314384,0.042312797158957,0.030139882117510,-0.025940150022507) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.198892459273338,-0.174608021974564,-0.208564892411232,0.395596683025360,0.061624906957150,-0.049325846135616,0.410162150859833,0.020621927455068,-0.208281591534615,-0.064862713217735,-0.086307726800442,0.070466428995132,0.028492089360952,-0.001040806411766,-0.033181287348270,-0.090258099138737) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.057449664920568,0.095949955284595,-0.008540067821741,-0.042187031358480,-0.128717094659805,-0.053829960525036,-0.122870355844498,0.015637736767530,0.086874127388000,0.114006690680981,-0.121890380978584,-0.158864080905914,0.141428247094154,0.030871946364641,-0.064082592725754,-0.098659195005894) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.148916497826576,-0.018478190526366,-0.088176257908344,-0.011846545152366,0.060892060399055,0.002435450674966,0.081242293119431,0.016223028302193,0.082021571695805,0.124848447740078,-0.221108242869377,0.028851492330432,0.025434529408813,-0.004642618820071,0.066409192979336,0.006765604019165) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.183878928422928,-0.013338753953576,-0.159349605441093,-0.013823268935084,0.051328130066395,-0.071634821593761,0.016368668526411,0.000170776867890,-0.020741073414683,0.028485661372542,-0.152142867445946,0.023515017703176,0.059819247573614,-0.010876378975809,0.027702718973160,-0.054632995277643) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.076203435659409,-0.095163658261299,-0.087514713406563,-0.037505138665438,0.194879874587059,-0.080280929803848,0.009369867853820,-0.047989286482334,-0.189126461744308,0.115158341825008,-0.043420094996691,0.020438650622964,-0.055600415915251,0.103153213858604,0.073699876666069,0.128949254751205) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.229414626955986,-0.066644214093685,0.022802053019404,0.022064389660954,0.023309538140893,-0.010415553115308,-0.014713331125677,-0.053902983665466,0.102343209087849,-0.044653896242380,-0.018910558894277,-0.092581920325756,0.069958545267582,0.127566754817963,-0.078627422451973,0.029317211359739) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.022861471399665,0.139053180813789,0.183615505695343,-0.002858466003090,0.067664101719856,0.012903886847198,-0.077177107334137,-0.036614056676626,0.137579977512360,-0.159817412495613,-0.034570533782244,-0.019273459911346,0.173934385180473,0.065977789461613,-0.097724810242653,-0.213058888912201) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.079979255795479,0.048135962337255,0.043263871222734,-0.031314413994551,0.199625164270401,-0.039143234491348,-0.048822920769453,-0.304128021001816,0.048739116638899,-0.160369679331779,-0.145128741860390,-0.118004292249680,-0.094214461743832,-0.106369644403458,-0.185045823454857,0.069172069430351) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.221306741237640,0.169268518686295,0.053622677922249,0.054630469530821,-0.008191234432161,-0.084092833101749,-0.032297722995281,0.018457148224115,0.118766218423843,0.020240381360054,0.023859323933721,0.024881862103939,-0.059441205114126,-0.093004330992699,0.111176319420338,0.019524989649653) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.300513029098511,-0.005586223211139,0.035098072141409,-0.134620010852814,-0.011418877169490,0.020335566252470,0.011224965564907,0.124876730144024,-0.051768444478512,-0.079967364668846,-0.030811006203294,0.083464413881302,-0.201118111610413,-0.049537755548954,-0.169697061181068,0.190050363540649) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.109215997159481,0.050227526575327,-0.039313741028309,-0.097553841769695,0.148975029587746,0.066617235541344,-0.097910158336163,-0.057971745729446,-0.024582087993622,0.100429095327854,0.039885006844997,-0.054144117981195,-0.211335808038712,0.184148266911507,-0.089624650776386,0.090251058340073) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.098877809941769,0.065285190939903,0.130444407463074,-0.042236294597387,-0.178534194827080,-0.093048632144928,-0.266074031591415,0.133032172918320,-0.021678363904357,0.030619464814663,-0.030004212632775,-0.051142320036888,-0.018693568184972,-0.071396656334400,0.046489778906107,-0.005222895182669) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.217926472425461,0.040841329842806,0.112915977835655,-0.071067370474339,-0.182181224226952,0.193674474954605,-0.145732462406158,0.070457749068737,-0.050177313387394,0.100313387811184,0.008919286541641,-0.008420949801803,0.097948931157589,-0.012298307381570,-0.109574317932129,-0.067184217274189) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.224411115050316,-0.013728135265410,0.219931647181511,-0.120797261595726,0.101551987230778,0.070586770772934,-0.297676503658295,-0.016546582803130,0.115189410746098,0.098070338368416,0.022908786311746,-0.127674639225006,-0.069174073636532,-0.090747959911823,0.061391763389111,0.176576212048531) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.084434419870377,-0.042048610746861,-0.069645226001740,0.044804222881794,0.165969148278236,0.034894797950983,0.001746080350131,-0.139330446720123,-0.142785832285881,0.100950658321381,0.040600571781397,0.080139391124249,-0.007369856815785,-0.025058671832085,-0.194259688258171,0.000352605944499) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.162322908639908,-0.089313648641109,0.056172613054514,-0.100892044603825,0.141676887869835,-0.150591507554054,0.082733146846294,-0.219105973839760,-0.201522395014763,-0.027784088626504,0.032909940928221,-0.036259919404984,0.170432761311531,-0.006446519400924,-0.134861096739769,-0.009978670626879) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.385028988122940,-0.140778109431267,0.160830616950989,-0.095608338713646,-0.117285601794720,-0.228523448109627,-0.039610877633095,0.168319910764694,0.191746607422829,0.000678965763655,0.024568067863584,0.088397361338139,0.036276374012232,0.125972166657448,-0.040384434163570,-0.246866300702095) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.060387544333935,0.038197912275791,-0.032013393938541,-0.044497761875391,0.080983072519302,-0.099695481359959,-0.005852402187884,-0.013740076683462,0.079663336277008,-0.058934301137924,0.088000863790512,-0.041539534926414,-0.021588141098619,-0.014756212010980,-0.069165252149105,0.047886878252029) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.065049834549427,-0.019197549670935,0.112467981874943,0.098063364624977,0.062641769647598,-0.053144536912441,0.100351080298424,0.099125087261200,-0.118976294994354,-0.079366207122803,0.221275627613068,-0.082588128745556,-0.198904439806938,0.032187473028898,-0.014466931112111,0.135804891586304) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.240811228752136,0.089298531413078,0.131368905305862,0.041507687419653,0.111170843243599,0.381215959787369,-0.047015123069286,-0.100877635180950,0.218773216009140,0.059555694460869,0.090259909629822,-0.138687416911125,-0.045980039983988,0.124603286385536,0.027573920786381,0.037692010402679) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.037337474524975,-0.019069353118539,-0.063225962221622,-0.012184900231659,0.080421388149261,0.007305164355785,0.096788205206394,0.062550976872444,-0.126151680946350,-0.089714914560318,0.015892399474978,0.021294115111232,0.147275969386101,0.010947817936540,-0.016220385208726,0.061677321791649) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.066409066319466,0.154011294245720,0.027843292802572,0.123618550598621,0.060015887022018,-0.108004815876484,-0.194163084030151,0.070106513798237,0.043594673275948,-0.012319555506110,0.065631248056889,-0.092957124114037,-0.106912888586521,0.162977576255798,0.000362081598723,-0.069272577762604) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.025538573041558,0.175651058554649,-0.184967592358589,-0.032693207263947,0.107206180691719,0.088511563837528,-0.080696873366833,-0.040307469666004,0.066946193575859,-0.152238145470619,-0.015087693929672,-0.002594992518425,0.069187082350254,0.173823401331902,-0.007021367549896,0.148596584796906) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.083763249218464,0.124889671802521,-0.200105622410774,0.070035703480244,-0.142695739865303,0.038809742778540,-0.098493978381157,0.025091446936131,0.097261361777782,-0.104908056557178,0.122726000845432,0.026599196717143,-0.050406921654940,0.154137268662453,-0.035714443773031,-0.056549757719040) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.208460733294487,0.052135955542326,-0.010145992040634,-0.423486173152924,-0.078993417322636,0.120833501219749,-0.146379366517067,-0.002296218182892,-0.054824359714985,0.116721399128437,0.127269804477692,-0.019490743055940,0.023049175739288,0.065704673528671,-0.119750067591667,-0.028678927570581) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.155387789011002,-0.241511419415474,-0.045680686831474,0.165186151862144,0.038991868495941,0.042388677597046,0.000161783915246,-0.108102619647980,0.041651662439108,0.093826800584793,-0.045881401747465,-0.008847581222653,0.063231237232685,-0.044681515544653,-0.009268995374441,0.045370072126389) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.004182280041277,-0.153373509645462,0.081569477915764,-0.043831117451191,0.019127469509840,0.116184972226620,0.025565423071384,-0.039908375591040,0.104546077549458,0.168731734156609,-0.011497911065817,-0.030500466004014,0.091722175478935,0.033993110060692,-0.115970902144909,0.073462039232254) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.145622774958611,-0.439781725406647,0.091803647577763,0.425785601139069,0.108754478394985,-0.083306819200516,-0.145837396383286,-0.192399591207504,0.109767705202103,-0.084888063371181,0.087121807038784,0.027788449078798,-0.090390197932720,-0.152596473693848,-0.059890367090702,0.018969302996993) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.042544774711132,0.279748141765594,-0.027085244655609,-0.139844253659248,0.111916348338127,0.068596437573433,-0.040105815976858,-0.014442596584558,0.041476670652628,0.045622628182173,-0.009089904837310,0.065663941204548,-0.104525022208691,-0.023083772510290,-0.095306962728500,0.059711050242186) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.008569525554776,0.106109790503979,-0.028504788875580,-0.000264380447334,-0.127446904778481,-0.017804922536016,0.023188991472125,0.047834753990173,0.167268082499504,0.109592840075493,0.052635282278061,-0.060102347284555,0.029975771903992,-0.007463454734534,0.033632561564445,0.016112351790071) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.121742658317089,-0.013752077706158,-0.012013197876513,-0.019934443756938,0.010268615558743,-0.120482638478279,-0.011839392594993,0.004542895592749,0.288922369480133,-0.106017947196960,-0.009904861450195,0.098726995289326,-0.051655769348145,-0.073363646864891,0.068949654698372,0.038413483649492) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.037678185850382,-0.073629483580589,0.014396099373698,-0.049951050430536,0.108242452144623,-0.037348244339228,-0.000606359797530,-0.147470667958260,-0.230326980352402,0.119709670543671,-0.069385841488838,-0.015280092135072,0.055595062673092,0.133693441748619,0.149033069610596,-0.050877656787634) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.220283746719360,-0.083503469824791,-0.093882784247398,-0.049318805336952,-0.188176661729813,-0.128202870488167,0.011191220022738,0.118607923388481,0.043853614479303,-0.025781452655792,0.095410078763962,0.004526909906417,0.066108629107475,-0.039327293634415,-0.023055490106344,-0.041932396590710) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.112441487610340,-0.112192191183567,-0.019025033339858,0.074693463742733,-0.049853824079037,0.064811877906322,-0.145624056458473,0.491808980703354,-0.227611854672432,0.042731840163469,0.084983527660370,0.235417142510414,-0.266843616962433,0.194681510329247,0.058060985058546,0.297797381877899) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.019042212516069,-0.003048222046345,0.001389331766404,-0.044209562242031,0.154488772153854,0.197080031037331,0.237459272146225,-0.385911226272583,-0.134402126073837,0.188098013401031,-0.092729188501835,0.038713764399290,0.253659963607788,0.160053923726082,0.115475930273533,-0.383204519748688) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.086460061371326,0.042292166501284,-0.017233988270164,-0.010300596244633,0.058111283928156,0.104965969920158,0.099845513701439,-0.071412853896618,-0.011140706017613,0.089371085166931,-0.030593575909734,0.007705460302532,0.038339719176292,-0.014604570344090,0.046024039387703,0.003576929913834) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.119887784123421,-0.004329529125243,-0.000322851381497,-0.125654458999634,0.147330954670906,0.052256818860769,-0.051496773958206,-0.225317880511284,0.006507806014270,0.065406464040279,-0.084817387163639,-0.085322774946690,-0.017199067398906,-0.118414737284184,0.035454474389553,-0.116125106811523) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.095117077231407,0.034397725015879,0.036946836858988,-0.035483829677105,0.256737798452377,-0.110576912760735,0.214382424950600,-0.167167812585831,-0.160801798105240,-0.107983566820621,-0.048184655606747,0.026329865679145,0.037473913282156,-0.182966411113739,0.055994126945734,0.110298886895180) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.138646349310875,-0.159856691956520,0.056906733661890,0.396323353052139) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_2x_Photo] mapping 1_5

vec4 hook()
{
vec4 res = vec4(0.001456040074117,-0.002533394610509,-0.091134160757065,0.051977649331093);
res += mat4(-0.114860311150551,-0.019835345447063,-0.079099424183369,-0.166040539741516,-0.156515404582024,-0.009152495302260,0.023353993892670,0.038667738437653,-0.011685661040246,0.092643618583679,0.003679087152705,0.048534534871578,-0.020327074453235,0.015605541877449,-0.049712914973497,-0.052952703088522) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.182491093873978,0.059155043214560,-0.446766555309296,0.199304401874542,-0.083036929368973,-0.055318109691143,0.048554249107838,-0.040254451334476,-0.123979039490223,0.036707546561956,0.063186667859554,-0.074590533971786,0.105543874204159,-0.053837828338146,0.027653982862830,-0.050813134759665) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.045726004987955,-0.018080251291394,0.131700798869133,-0.164056301116943,0.064460545778275,0.061606615781784,0.034187305718660,-0.019846504554152,-0.028803318738937,-0.065167471766472,0.009334279224277,-0.002298788167536,0.022685902193189,-0.078107543289661,0.006794583983719,-0.057118251919746) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.179845348000526,-0.034473508596420,-0.005183834582567,-0.324842542409897,-0.042855892330408,-0.072598047554493,0.017596250399947,0.010605853050947,0.326436132192612,0.014130276627839,0.065201438963413,-0.046703979372978,-0.005775857716799,0.040250621736050,0.050103943794966,0.011969489045441) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.103020623326302,0.015949126332998,-0.138586148619652,0.012602017261088,-0.011213357560337,0.154389530420303,-0.040408447384834,0.068925596773624,0.054673444479704,-0.045390702784061,0.126861542463303,-0.139440342783928,-0.100680828094482,0.052225094288588,-0.023518988862634,-0.165326237678528) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.018082110211253,0.079914353787899,-0.092520728707314,-0.049311101436615,-0.159473821520805,-0.049528695642948,-0.072438612580299,0.021062394604087,-0.095346920192242,-0.027253869920969,-0.071608200669289,-0.013410146348178,0.135952353477478,-0.134244456887245,0.151222154498100,0.005332040600479) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.048358432948589,-0.094089925289154,-0.056500315666199,-0.077964521944523,-0.126987203955650,0.107749789953232,-0.022376954555511,-0.147960051894188,-0.011682524345815,-0.052362158894539,-0.055170644074678,-0.061109401285648,0.041263647377491,-0.019533012062311,-0.021505722776055,-0.006767906248569) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.084273263812065,0.023625347763300,-0.090130694210529,-0.050134941935539,0.103496924042702,-0.034365631639957,-0.010227357037365,0.040382474660873,-0.011298823170364,-0.017350345849991,0.146967038512230,-0.006145078688860,0.020762255415320,0.123745508491993,0.053593870252371,0.022978592664003) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.041489433497190,-0.018790669739246,-0.040373641997576,0.095661759376526,-0.006663523614407,-0.035023644566536,-0.049894068390131,0.099454291164875,0.050091039389372,0.017177114263177,0.046809542924166,0.061070904135704,-0.094282262027264,0.007571177557111,0.140719071030617,-0.035179518163204) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.022939912974834,-0.333879441022873,-0.030366929247975,0.099179312586784,0.112529411911964,-0.110370524227619,0.008756676688790,-0.012788084335625,-0.189120739698410,-0.087993189692497,-0.051547918468714,0.010197367519140,0.074420407414436,0.009850282222033,-0.042514704167843,0.041898503899574) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.156072869896889,0.080695450305939,-0.093566171824932,-0.123661987483501,0.043983124196529,-0.009925259277225,0.103054456412792,0.087567880749702,0.112069956958294,0.005716271232814,0.091431647539139,-0.101493306457996,0.045813255012035,0.006620566360652,-0.042838163673878,-0.027619615197182) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.124740138649940,0.214534834027290,-0.048808589577675,0.059998583048582,0.145207181572914,0.132659479975700,0.073758803308010,0.009755456820130,-0.346891313791275,0.138676822185516,0.038996722549200,-0.005578584503382,-0.164659142494202,-0.058402482420206,0.000711979810148,-0.035088159143925) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.004870948381722,0.058802429586649,-0.023869339376688,0.105669386684895,0.073697805404663,-0.041466485708952,0.092387624084949,0.032832253724337,0.055016059428453,0.028017094358802,0.055743969976902,0.082200765609741,0.002022388624027,0.011995018459857,0.032780129462481,-0.017117628827691) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.178355515003204,0.071074970066547,-0.150863260030746,0.079472437500954,-0.052330322563648,-0.002076867269352,0.104578956961632,-0.017253896221519,-0.082079760730267,-0.016440853476524,0.094076886773109,0.015958739444613,0.064635351300240,-0.002736058784649,0.059267986565828,-0.019808022305369) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.024196363985538,-0.081402003765106,0.341906726360321,-0.053808290511370,-0.011804042384028,0.095163233578205,0.147694364190102,-0.016266446560621,-0.008791089989245,0.071472458541393,0.400872826576233,0.016102150082588,-0.002203700365499,0.036657627671957,0.176992148160934,-0.075836092233658) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.071910418570042,0.204489961266518,-0.042854279279709,-0.125480636954308,0.040188878774643,-0.027667220681906,0.014285205863416,-0.042093452066183,-0.167683303356171,-0.027976257726550,-0.057349584996700,0.025756094604731,0.064970605075359,0.004320539534092,0.072756513953209,-0.033591967076063) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.225850552320480,-0.122309520840645,-0.081955574452877,0.162172988057137,-0.025735672563314,0.144671991467476,0.043049532920122,0.096784554421902,0.092029653489590,0.010194317437708,-0.058881934732199,0.057932175695896,-0.019558405503631,0.095575064420700,-0.167654782533646,0.094735480844975) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.001842472935095,-0.204385519027710,-0.247750014066696,-0.187684848904610,0.005141980946064,0.001999728381634,0.034794844686985,-0.118947982788086,-0.075546041131020,-0.101896323263645,-0.250751733779907,-0.151110440492630,-0.020078262314200,0.049479462206364,-0.033685900270939,-0.059106633067131) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.122682183980942,0.336831450462341,-0.064805269241333,0.084229588508606,-0.025841180235147,0.012093241326511,-0.069222822785378,-0.036203540861607,0.199562475085258,-0.100829124450684,-0.012001483701169,-0.068446896970272,0.070122748613358,-0.066102638840675,0.085172191262245,0.023641455918550) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.102924376726151,-0.039424546062946,-0.127351403236389,-0.019801491871476,-0.020004203543067,-0.078721478581429,-0.039104033261538,0.085465304553509,0.033169455826283,-0.046330932527781,-0.117659129202366,0.107893988490105,0.005470992997289,-0.053956627845764,-0.140839904546738,0.015280408784747) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.067711010575294,-0.172472193837166,-0.025154517963529,-0.002851594472304,-0.000415476679336,0.103402100503445,-0.056257158517838,0.069069303572178,0.227617263793945,0.053585883229971,-0.126300454139709,-0.119573533535004,0.109876967966557,0.181172385811806,0.076244182884693,-0.050611749291420) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.159047186374664,0.157390534877777,-0.079790130257607,-0.052345044910908,0.005027913954109,0.039576899260283,0.105930887162685,-0.020706072449684,-0.122885167598724,-0.031822428107262,-0.024353040382266,-0.029318949207664,0.036471385508776,0.073698177933693,0.045541323721409,0.012355645187199) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.029770765453577,-0.063447341322899,-0.087059564888477,0.050802081823349,-0.141440153121948,0.020269291475415,0.025107204914093,-0.045942667871714,-0.143059581518173,0.094577714800835,-0.052790720015764,-0.042791776359081,-0.054005503654480,0.065500184893608,-0.020019685849547,0.127947553992271) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.155091598629951,-0.003042132826522,-0.040161255747080,0.011861613951623,0.035865113139153,0.137141570448875,0.169463649392128,0.040106654167175,-0.146134331822395,-0.060462400317192,0.040973559021950,-0.023617530241609,-0.086061269044876,-0.122154422104359,0.295591354370117,-0.126576259732246) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.188273847103119,-0.172004938125610,-0.026295170187950,0.207334667444229,0.130968958139420,0.165165305137634,0.089134044945240,-0.072503693401814,0.061072841286659,-0.021507231518626,0.034694388508797,-0.035229671746492,0.001030590152368,0.150313183665276,-0.047881558537483,0.069133631885052) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.257410854101181,-0.134332969784737,-0.316374361515045,-0.000119116142741,0.115797162055969,-0.124368317425251,0.006430055014789,-0.007568965665996,0.009995792992413,-0.087434746325016,-0.041188128292561,0.078703492879868,0.094823829829693,-0.040168456733227,-0.100522473454475,0.149757981300354) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.017854368314147,-0.037979509681463,0.164622411131859,-0.127986967563629,0.083786450326443,0.030811624601483,-0.020725512877107,0.000580385793000,-0.043995909392834,0.184761062264442,-0.083362191915512,-0.041283726692200,-0.040213819593191,-0.230653360486031,-0.124137163162231,-0.296719700098038) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.015370219945908,-0.061861030757427,-0.022556185722351,0.017626799643040,0.104739852249622,-0.184540912508965,0.030731512233615,-0.031003937125206,0.032389927655458,-0.018938638269901,0.053570982068777,-0.027309086173773,0.056166261434555,0.052142992615700,-0.010614714585245,0.116997316479683) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.033435456454754,-0.129986584186554,-0.013435865752399,0.064305804669857,0.199646383523941,-0.255363374948502,-0.044029172509909,-0.197103276848793,0.026134083047509,0.188808009028435,0.123533912003040,0.009256671182811,0.050287175923586,-0.037177976220846,-0.078542321920395,-0.165598645806313) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.145760595798492,0.000910417409614,-0.074929773807526,0.007855967618525,-0.027696371078491,0.143264010548592,-0.294031649827957,0.128056511282921,0.146805927157402,-0.034590650349855,0.014410701580346,-0.044601537287235,0.084371790289879,0.031465563923120,0.060444392263889,0.213674694299698) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.014105236157775,-0.030943837016821,-0.021955965086818,0.014229069463909,-0.026512956246734,-0.065326914191246,-0.024017604067922,-0.080455563962460,0.020496040582657,0.034065537154675,0.041409701108932,0.047211989760399,-0.024336926639080,-0.231228128075600,-0.000513963459525,0.015172147192061) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.100799985229969,-0.022699650377035,-0.092459365725517,-0.043175898492336,-0.293272405862808,-0.025141790509224,0.027849810197949,-0.131015375256538,-0.039312038570642,0.039157439023256,0.021596943959594,-0.123469255864620,-0.073376648128033,-0.001437455881387,-0.091448277235031,0.180486172437668) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.171632871031761,0.059708852320910,-0.013840707018971,0.027442203834653,0.074396252632141,0.068563655018806,0.081620506942272,0.240408003330231,0.199391707777977,0.057393405586481,0.205319926142693,-0.113637857139111,-0.102450869977474,0.022392353042960,0.096337728202343,-0.253654092550278) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.030877189710736,0.061230786144733,0.027462329715490,-0.013589430600405,-0.064240165054798,0.102687530219555,-0.053988073021173,0.019297562539577,0.041007068008184,0.056807719171047,0.027216561138630,-0.042431674897671,-0.070277065038681,-0.021386496722698,-0.053718939423561,-0.037750326097012) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.043534021824598,0.077091313898563,-0.002454284578562,0.002521730959415,0.086666375398636,0.186681613326073,0.010096092708409,-0.168826118111610,-0.069707043468952,-0.032163593918085,0.043840609490871,0.155493915081024,0.126363188028336,0.159692555665970,0.031600266695023,0.094812870025635) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.111470751464367,0.029501000419259,0.006850728765130,0.093328364193439,-0.019454024732113,-0.093753576278687,-0.085827328264713,0.256238460540771,-0.006610187701881,-0.083657540380955,-0.049459733068943,-0.303370177745819,0.035436071455479,-0.028813172131777,-0.104146786034107,-0.114061780273914) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.001433046301827,-0.120281614363194,-0.017496146261692,0.092028386890888,0.013234367594123,-0.009528112597764,0.041041344404221,-0.031076099723577,0.045778691768646,0.148287430405617,-0.020348863676190,-0.114334210753441,0.022193975746632,-0.192130073904991,-0.000943964871112,0.006496747024357) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.144289836287498,0.095209933817387,-0.109810203313828,0.061463709920645,-0.034780714660883,-0.171625897288322,-0.152393490076065,-0.081974409520626,-0.103904642164707,0.011674452573061,-0.068713977932930,0.086281761527061,-0.006488349288702,0.079936318099499,-0.061846815049648,-0.094719856977463) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.090616270899773,0.083319149911404,-0.086305379867554,-0.095613844692707,-0.050075549632311,0.145115062594414,0.100617237389088,0.039620775729418,0.006763982120901,0.000635902106296,-0.102244339883327,-0.258586525917053,-0.063783243298531,0.163107901811600,-0.009196955710649,0.032059583812952) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.064583085477352,-0.042541999369860,-0.073074564337730,-0.037041850388050,-0.022961376234889,-0.075554437935352,0.015387865714729,-0.005902908742428,-0.011835435405374,0.180989354848862,-0.062561966478825,-0.027852749451995,0.052854482084513,-0.058804262429476,-0.053724408149719,0.090636268258095) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.204699963331223,0.239601224660873,-0.113659799098969,0.096732579171658,0.089772067964077,-0.016814760863781,-0.264813780784607,0.093683838844299,0.000387805222999,-0.032351955771446,0.241218924522400,0.175873339176178,-0.148502111434937,0.006727447733283,0.027596581727266,0.069612376391888) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.055531289428473,0.073082312941551,0.423964381217957,-0.086935371160507,0.003145809285343,0.155712068080902,0.076536156237125,0.013077908195555,-0.051966425031424,-0.341878592967987,-0.126543432474136,-0.044168442487717,-0.066094011068344,-0.027268625795841,-0.101134240627289,-0.010159219615161) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.146031364798546,0.060194987803698,0.037140242755413,-0.124772876501083,-0.113904848694801,-0.040988687425852,-0.012973087839782,0.005709396209568,0.005918983370066,-0.058915328234434,-0.086213015019894,0.012025108560920,-0.024065030738711,-0.036447558552027,-0.046276744455099,0.043048746883869) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.281168669462204,-0.019634846597910,0.187494039535522,0.216159209609032,-0.038926001638174,0.248146325349808,-0.192867159843445,0.231421157717705,0.044191952794790,0.181397289037704,-0.019245494157076,0.004079025238752,-0.023858951404691,0.070165283977985,-0.183357581496239,0.054417565464973) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.024199035018682,-0.331201374530792,-0.229755699634552,-0.073725052177906,-0.006766968406737,0.056521896272898,0.061934676021338,-0.042446367442608,-0.032512184232473,-0.063601799309254,0.066731579601765,0.115453533828259,-0.042115930467844,-0.013334248214960,-0.073948659002781,-0.081042692065239) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.055693048983812,-0.018618507310748,-0.017928700894117,0.006673244759440,-0.123939871788025,0.052617989480495,0.017865331843495,0.042930092662573,0.062018502503633,-0.128056123852730,-0.074497640132904,-0.128358110785484,0.066768817603588,0.079046547412872,0.038661520928144,-0.027441600337625) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.009673770517111,0.054492447525263,-0.069751262664795,0.016965299844742,-0.193534731864929,-0.010377866216004,-0.059673514217138,-0.044470377266407,-0.198611602187157,-0.074812851846218,-0.197560608386993,0.046494115144014,-0.123731397092342,-0.115038000047207,-0.064926683902740,0.105262801051140) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.073000125586987,-0.046233993023634,-0.021908203139901,-0.021388288587332,-0.117503263056278,-0.167857557535172,0.041992221027613,0.016494067385793,-0.109094828367233,0.149706214666367,0.377800762653351,-0.040198076516390,0.089469790458679,-0.064187109470367,0.042106918990612,-0.180978983640671) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.029740773141384,-0.051569443196058,0.028978260233998,0.013449748978019,-0.043099008500576,-0.033034034073353,0.008283992297947,0.037426710128784,-0.196877434849739,-0.034917488694191,-0.049408596009016,0.122069902718067,-0.102770872414112,0.137864679098129,-0.066211871802807,-0.006414434406906) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.083350822329521,-0.036765299737453,-0.079808488488197,-0.032957553863525,0.001637514797039,-0.141874641180038,-0.183258682489395,-0.009511183947325,0.072057045996189,-0.089824877679348,-0.215325087308884,0.101685412228107,0.042302075773478,-0.053889632225037,0.101366154849529,0.062403909862041) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.009496056474745,-0.005885419901460,0.004032951779664,0.027392359450459,0.014416736550629,0.046899292618036,-0.376004189252853,0.127908542752266,-0.182575672864914,-0.064977623522282,-0.221376597881317,-0.078330956399441,-0.121740840375423,0.038833513855934,-0.311411559581757,-0.050487875938416) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.058218996971846,-0.080952435731888,0.079410023987293,0.087179414927959,-0.106687918305397,-0.107983775436878,0.041431009769440,-0.089909493923187,-0.074734233319759,-0.089728958904743,-0.011192601174116,0.005129932425916,0.038948237895966,-0.049990504980087,-0.049976386129856,0.109444797039032) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.024372493848205,0.013015722855926,0.017964286729693,-0.079790547490120,-0.158763125538826,0.025945667177439,-0.064559496939182,-0.050024248659611,-0.073381327092648,-0.015130495652556,0.085190318524837,-0.000554540310986,-0.094455383718014,-0.061551205813885,0.027195306494832,-0.170807823538780) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.028650073334575,-0.045463573187590,0.007540682330728,-0.019272899255157,-0.039154749363661,0.300698608160019,0.017702912911773,0.237163826823235,-0.039662729948759,0.194809451699257,-0.073981627821922,0.080103583633900,0.104478076100349,-0.004228774923831,-0.090639352798462,0.176294893026352) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.038403999060392,-0.715533375740051,-0.088810756802559,-0.297086954116821) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_2x_Photo] mapping 1_6

vec4 hook()
{
vec4 res = vec4(-0.090375781059265,-0.290743976831436,0.038818843662739,0.026752814650536);
res += mat4(0.235695883631706,-0.288947910070419,0.074831947684288,-0.304681718349457,-0.008507227525115,-0.164407238364220,-0.036289419978857,0.112563878297806,-0.061084792017937,-0.004601121414453,0.041538778692484,-0.048881981521845,-0.138338744640350,0.034311547875404,0.011243156157434,-0.044681113213301) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.153686121106148,0.101289965212345,-0.082831382751465,0.119258269667625,0.031341761350632,0.065617099404335,0.051673959940672,0.047548733651638,0.060155823826790,0.015126767568290,0.034932397305965,0.008340597152710,-0.087636120617390,0.063601396977901,0.066839806735516,-0.039754148572683) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.023817582055926,0.014581224881113,-0.074760489165783,0.066674262285233,0.028202021494508,0.119910247623920,-0.053459636867046,-0.098694585263729,-0.013476743362844,0.082528203725815,0.083462692797184,-0.013279134407640,-0.110529646277428,0.017291020601988,-0.057607810944319,0.246876507997513) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.093639671802521,-0.077268674969673,0.031958814710379,0.005041128024459,0.299748986959457,-0.217593014240265,0.075763307511806,0.008219361305237,-0.002494185464457,0.078120589256287,0.014049450866878,0.144898667931557,0.122978180646896,-0.040991015732288,-0.044814918190241,0.011269322596490) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.102557674050331,0.059846159070730,-0.096888765692711,-0.155272021889687,0.087601527571678,0.067601330578327,-0.085434772074223,0.073982149362564,-0.093091197311878,-0.036271773278713,-0.077950581908226,0.051846142858267,-0.198135182261467,0.052552960813046,0.128720149397850,-0.068239532411098) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.040631555020809,0.027509629726410,-0.087451361119747,-0.003498764010146,-0.057547055184841,0.121824428439140,-0.084119752049446,0.067821837961674,0.024381488561630,0.204287931323051,0.013279465958476,0.024444079026580,-0.016998797655106,0.183514684438705,-0.028682177886367,0.119375616312027) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.008378959260881,0.093409098684788,-0.007031176239252,0.014877158217132,-0.068089194595814,-0.139439865946770,0.011192212812603,-0.095655575394630,-0.161722213029861,0.063648499548435,0.030280619859695,-0.042768534272909,0.149409666657448,-0.050034642219543,-0.025501642376184,0.013260579667985) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.003023677039891,0.052594389766455,-0.009654639288783,0.010495066642761,0.123409524559975,0.002468638587743,0.054904796183109,-0.099554456770420,0.008418592624366,0.075824759900570,0.074793703854084,-0.008521358482540,-0.069242298603058,-0.148644968867302,-0.133205965161324,0.137834951281548) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.067162871360779,-0.000994639587589,-0.088715478777885,0.001549558248371,0.090518951416016,0.064575523138046,0.060025688260794,-0.093649961054325,-0.031450062990189,0.012761755846441,0.027617452666163,-0.022802010178566,-0.014138841070235,0.048484604805708,-0.105047278106213,-0.030223691835999) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.056560654193163,0.092284500598907,0.075649261474609,-0.072397746145725,0.032395720481873,-0.077045358717442,-0.033399619162083,0.017162000760436,0.080752171576023,-0.068131819367409,0.002855695085600,-0.196866437792778,0.023029947653413,-0.221383973956108,-0.029458222910762,-0.022699952125549) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.097138591110706,-0.134175673127174,0.264020264148712,-0.235381960868835,-0.018127346411347,-0.083035543560982,-0.048084456473589,-0.139926806092262,-0.082552276551723,0.013123929500580,0.091122128069401,-0.192857846617699,-0.003983775153756,-0.055091381072998,-0.035692360252142,-0.113185748457909) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.034970525652170,0.103674165904522,0.082177639007568,-0.011894471012056,0.146318286657333,-0.044200297445059,0.012161309830844,0.014758887700737,-0.005416788160801,0.074945934116840,-0.044615656137466,0.005212591029704,0.097731173038483,0.248041763901711,0.125671684741974,-0.217879801988602) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.498468130826950,0.275442361831665,0.089768238365650,0.034140337258577,0.054883394390345,-0.016930690035224,-0.061152033507824,-0.283565908670425,0.216017112135887,-0.231667920947075,-0.031951956450939,0.234081268310547,0.005277104675770,-0.011892873793840,0.004715560935438,0.000504064490087) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.090635560452938,-0.210766389966011,-0.561759054660797,0.415829628705978,0.005899975076318,0.023552194237709,0.056689079850912,-0.178258627653122,-0.064511694014072,0.124001748859882,-0.116039566695690,0.198805257678032,0.037386242300272,-0.047581449151039,-0.068407796323299,0.156206965446472) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.189343571662903,-0.001917216810398,-0.026037406176329,0.040419224649668,0.134438574314117,0.059386122971773,0.111947856843472,-0.020701767876744,0.008661249652505,-0.081561632454395,0.018461247906089,0.075219646096230,-0.086901634931564,0.012122452259064,0.069066941738129,0.077782571315765) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.130355581641197,-0.039373070001602,-0.142923817038536,0.104504540562630,-0.008948826231062,-0.029339307919145,0.030268168076873,-0.009508884511888,-0.068267099559307,-0.046947214752436,-0.066100977361202,-0.055463995784521,-0.154797822237015,-0.113027095794678,0.081006780266762,0.052374139428139) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.012774687260389,0.131644666194916,0.186435326933861,-0.150470048189163,-0.027612218633294,0.042811904102564,0.014294628985226,0.078403338789940,-0.110988192260265,0.116919063031673,0.089391700923443,0.005885431077331,-0.098551131784916,-0.036078285425901,0.071221739053726,-0.032237462699413) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.051597159355879,-0.005037761293352,-0.021306321024895,-0.067737780511379,0.057447385042906,-0.090639255940914,-0.044453579932451,-0.023176338523626,-0.056416340172291,-0.094304889440536,0.033969875425100,-0.074557974934578,-0.061508968472481,-0.044800437986851,0.178830400109291,-0.019619254395366) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.081989869475365,0.124863453209400,-0.023472972214222,0.045127160847187,-0.090479247272015,-0.155908852815628,0.005399326793849,-0.073060311377048,-0.045141875743866,0.110114216804504,0.192495822906494,-0.098539046943188,0.077835783362389,0.154993489384651,0.001439730171114,0.004563379567116) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.082696951925755,0.027580250054598,-0.051908947527409,0.135424241423607,-0.036940824240446,-0.002883712761104,-0.157962217926979,0.086822479963303,-0.171584665775299,-0.065233550965786,-0.020397581160069,-0.353108584880829,-0.135831490159035,-0.106022998690605,0.052694078534842,-0.111644044518471) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.053174771368504,-0.052471257746220,-0.002375536831096,-0.016908124089241,0.016307951882482,0.120029427111149,-0.085774920880795,-0.038119956851006,-0.051701623946428,0.156962811946869,0.210379481315613,-0.237215489149094,0.113626956939697,0.039689440280199,0.080263175070286,-0.018637046217918) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.053977590054274,-0.115751124918461,0.017825916409492,0.114345543086529,0.144875869154930,-0.071969442069530,0.059717070311308,0.020588489249349,0.174290508031845,-0.024432105943561,-0.153725787997246,0.135133191943169,0.130965739488602,0.079774834215641,-0.016593543812633,0.073845908045769) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.023267790675163,0.058357175439596,0.118418172001839,-0.341333001852036,0.172747597098351,0.135879561305046,-0.050986982882023,0.197927668690681,0.104740820825100,-0.143389776349068,-0.300131916999817,0.254959166049957,-0.060615744441748,-0.119628712534904,-0.348586201667786,0.447231292724609) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.015263720415533,0.096955299377441,-0.108402647078037,0.007287881802768,-0.012727173045278,0.139930546283722,0.051153924316168,-0.003569339634851,-0.105874001979828,-0.180599898099899,0.059458602219820,0.105482511222363,0.000390971254092,-0.132446780800819,-0.030180195346475,0.068073049187660) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.190830692648888,-0.172034159302711,0.072593495249748,-0.140719339251518,-0.014690593816340,-0.102681867778301,0.017393548041582,0.009730084799230,-0.064298056066036,0.056558366864920,0.009438395500183,0.013370047323406,-0.008276842534542,0.057125698775053,-0.078510828316212,0.041153311729431) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.181984901428223,0.014521070756018,0.018119428306818,-0.035542495548725,0.009055603295565,-0.010335476137698,0.092583335936069,-0.120024234056473,0.097658023238182,0.070308744907379,-0.098129518330097,0.004334799479693,-0.228143200278282,0.165185332298279,0.023725433275104,-0.035886589437723) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.099854230880737,0.015769053250551,0.040921773761511,-0.060252219438553,-0.004974423907697,-0.013024536892772,0.114737801253796,0.008290670812130,-0.029754932969809,-0.065008960664272,0.106358066201210,0.056107684969902,0.034109923988581,0.021510668098927,0.067934438586235,-0.070755131542683) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.038820099085569,0.061768531799316,0.075728058815002,-0.169594958424568,-0.276518791913986,0.022385062649846,0.032353825867176,-0.141950830817223,0.056241434067488,-0.026851551607251,0.000314247648930,0.027171457186341,0.192241042852402,0.056862790137529,-0.001462449203245,0.084754660725594) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.140552371740341,-0.157272174954414,0.155990108847618,-0.139830708503723,0.109102793037891,0.172871097922325,0.496225237846375,-0.714695513248444,-0.087495744228363,-0.036750365048647,0.029343387112021,0.039530027657747,0.005334458779544,-0.111990958452225,-0.030800493434072,0.004090066999197) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.009338703006506,-0.173380672931671,0.112038783729076,-0.245084375143051,-0.048218950629234,0.008522258140147,-0.205415517091751,0.229221776127815,0.066454358398914,-0.071892075240612,0.067679643630981,-0.016248529776931,-0.044675961136818,0.102460213005543,0.064467020332813,-0.149576783180237) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.025218026712537,0.148175016045570,-0.046657592058182,0.110095478594303,0.235231101512909,-0.027643764391541,-0.128687813878059,0.145016580820084,0.220524758100510,0.057553417980671,0.052346695214510,0.016671419143677,-0.009874987415969,0.187386959791183,-0.059737265110016,0.016657315194607) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.182266071438789,-0.117598675191402,0.014397868886590,0.038008920848370,-0.059782095253468,-0.258365750312805,-0.147623464465141,0.153670951724052,-0.144666254520416,-0.201627850532532,-0.029902679845691,0.032151862978935,0.140927448868752,-0.082302540540695,-0.119516201317310,0.125911325216293) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.030506251379848,-0.307919621467590,-0.109062388539314,0.162710011005402,-0.173030182719231,0.032308023422956,-0.044784683734179,-0.075088739395142,0.125317618250847,-0.404900789260864,-0.065194755792618,0.070501998066902,-0.073640562593937,-0.110313005745411,0.046278461813927,-0.014121688902378) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.015310887247324,0.182559564709663,-0.089519031345844,0.054349720478058,0.018300278112292,0.091283902525902,-0.022152580320835,0.070193439722061,0.053623314946890,0.053820215165615,0.126673862338066,-0.061792232096195,-0.076453417539597,-0.038711465895176,-0.057444401085377,0.044074650853872) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.159475520253181,-0.079923816025257,-0.004977714270353,0.127967521548271,-0.020361043512821,-0.047569565474987,0.061358109116554,0.096808508038521,-0.175508305430412,-0.055525980889797,0.043642975389957,-0.033622983843088,0.068881653249264,0.006256189197302,0.055413376539946,-0.039203517138958) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.125588119029999,-0.261400103569031,-0.167576000094414,0.194875687360764,-0.031599856913090,-0.014379745349288,-0.086157955229282,0.001036760862917,0.023686081171036,-0.219835549592972,0.136370673775673,-0.015362835489213,-0.109786100685596,-0.011391707696021,0.015306081622839,0.008698868565261) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.171072512865067,0.001231971895322,-0.050676189363003,0.024275219067931,0.080288000404835,0.103882692754269,-0.005897175520658,0.095047436654568,0.033780306577682,0.009037693962455,-0.061718508601189,-0.050282973796129,-0.068881236016750,-0.070398800075054,-0.032937739044428,-0.033705919981003) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.076242670416832,0.050175562500954,0.329614758491516,-0.245101436972618,0.005404789000750,-0.142455652356148,-0.056575309485197,0.099898017942905,-0.153463169932365,-0.012114347890019,-0.166178628802299,0.017892641946673,-0.029701562598348,0.081542588770390,0.213779419660568,-0.192448049783707) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.088650599122047,-0.137599155306816,-0.003613349283114,0.021762635558844,-0.023486401885748,0.034586545079947,0.086890593171120,0.006403674837202,-0.071982428431511,0.002826089272276,-0.081838890910149,0.134289160370827,-0.036067951470613,-0.084171064198017,-0.099966064095497,0.046150505542755) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.270809203386307,0.173583865165710,0.031622216105461,-0.222273036837578,-0.059599634259939,0.106413826346397,0.118015371263027,-0.146364405751228,-0.016123510897160,-0.104535982012749,-0.063131101429462,0.055337790399790,-0.028027623891830,-0.138300538063049,-0.024256024509668,-0.049281701445580) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.035625554621220,-0.170638099312782,-0.573039174079895,0.476933091878891,0.110915221273899,-0.023169474676251,0.128179982304573,-0.373704046010971,-0.140910804271698,-0.085554257035255,-0.077015079557896,0.066625721752644,0.132435649633408,-0.033399526029825,-0.034925337880850,0.049932278692722) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.034687455743551,0.015334272757173,0.076596572995186,-0.002707420149818,0.041933111846447,0.107015594840050,-0.017489446327090,0.044825747609138,-0.054921627044678,0.141636297106743,0.080499418079853,-0.153115198016167,0.023463366553187,0.205641478300095,-0.048454985022545,0.138298094272614) * FEATURE5_texOff(vec2(0,1));
res += mat4(-0.190007984638214,-0.128037586808205,-0.030859509482980,0.049856130033731,0.232042446732521,0.225984469056129,0.064503893256187,0.030509486794472,-0.038118399679661,-0.018651779741049,0.042734820395708,-0.046623393893242,-0.033264342695475,-0.106295011937618,-0.083988025784492,0.121518716216087) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.031120881438255,0.114038370549679,0.166870221495628,-0.055861718952656,-0.015437182039022,-0.351579219102859,-0.140770554542542,0.073241330683231,-0.063285164535046,0.145653128623962,-0.077898606657982,-0.022737223654985,-0.007254320662469,0.074483245611191,-0.080419249832630,0.029627008363605) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.023130800575018,0.037411540746689,0.009669201448560,0.010893692262471,-0.001440357416868,-0.018892718479037,0.079599440097809,0.056294415146112,0.001612947322428,0.000647781591397,0.096815980970860,0.017072321847081,-0.028755400329828,0.004038794431835,-0.096110433340073,0.009607650339603) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.183150693774223,-0.064641289412975,0.056610811501741,-0.172688663005829,0.134321823716164,-0.100918866693974,-0.169301182031631,0.207852885127068,0.120751030743122,-0.032663479447365,-0.039235096424818,0.160031497478485,-0.031770423054695,0.043424431234598,-0.118889749050140,0.036302741616964) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.026011107489467,0.005007318221033,0.016856528818607,-0.024137347936630,0.156439751386642,-0.002457112539560,-0.484483808279037,0.407979696989059,-0.254373311996460,0.110895261168480,-0.124023497104645,0.136239498853683,-0.008714683353901,-0.026470387354493,-0.274010628461838,0.185511186718941) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.035096228122711,-0.113572992384434,0.050323579460382,0.032363250851631,0.082705795764923,0.030522828921676,-0.007291457615793,0.212030947208405,0.029295392334461,0.100800409913063,0.113822340965271,-0.156536653637886,0.046635605394840,-0.050391271710396,0.238956302404404,0.006904780864716) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.038531649857759,0.065512448549271,0.008574361912906,0.168280169367790,-0.333235621452332,-0.282598823308945,0.004763457458466,-0.079522415995598,-0.137340635061264,0.016120767220855,-0.089726202189922,-0.033298783004284,-0.301257431507111,-0.093193843960762,-0.114099413156509,-0.076039686799049) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.064000278711319,-0.241391837596893,-0.094117917120457,-0.025269761681557,0.062993355095387,0.218329414725304,0.319801270961761,-0.221202373504639,-0.079942338168621,-0.004056727513671,0.030423285439610,-0.151003241539001,0.452903032302856,0.266314148902893,0.256603896617889,-0.059222228825092) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.016793578863144,-0.232749983668327,-0.043693657964468,-0.052853420376778,0.109218753874302,0.247022181749344,0.112661555409431,-0.021799681708217,-0.155180945992470,-0.089049279689789,0.019587388262153,-0.061781641095877,0.111645810306072,-0.096211329102516,-0.128586784005165,0.141064301133156) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.132890820503235,0.222336038947105,-0.003846574807540,-0.033609505742788,0.013946030288935,-0.102956116199493,0.072627089917660,-0.079147785902023,-0.069125905632973,0.096078477799892,0.026978692039847,-0.010425230488181,0.064866319298744,-0.038357142359018,-0.006813023705035,0.003964825998992) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.084680609405041,0.026164168491960,0.000868073955644,0.057542718946934,0.012284103780985,-0.071403823792934,0.050896808505058,-0.112026125192642,-0.081008270382881,-0.106528557837009,-0.036747232079506,0.059159897267818,0.045151654630899,-0.016443083062768,-0.066119313240051,-0.134340569376945) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.115594848990440,-0.004925409331918,0.009853623807430,0.030732335522771,0.139807000756264,0.067215606570244,0.000000785297289,-0.004436525981873,0.019027648493648,0.033110693097115,-0.007898433133960,0.008347231894732,-0.022179173305631,0.062705002725124,0.118746452033520,-0.132461965084076) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.094785653054714,0.130699083209038,0.651268243789673,-0.645938336849213) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_2x_Photo] mapping 2_1

vec4 hook()
{
vec4 res = vec4(-0.029595697298646,0.062113873660564,0.151507854461670,0.081526093184948);
res += mat4(0.160021364688873,-0.027062587440014,0.024377787485719,-0.022544281557202,-0.025276871398091,-0.039858102798462,-0.080275133252144,-0.101627007126808,-0.046225681900978,-0.004528890829533,-0.064835026860237,0.021472297608852,-0.110522650182247,0.021610546857119,0.096432171761990,-0.250235587358475) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.268694072961807,-0.147475719451904,0.061345875263214,-0.097692169249058,-0.005954878870398,-0.067499458789825,0.010410109534860,0.054781530052423,-0.043614204972982,0.145936340093613,0.188579112291336,0.041919831186533,-0.062930122017860,0.055561460554600,0.000337920035236,-0.363586515188217) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.069559134542942,0.143875196576118,-0.196581751108170,-0.175852909684181,0.026170793920755,-0.043189477175474,0.053816601634026,-0.056547991931438,-0.049414426088333,0.067825876176357,0.052859265357256,-0.061423663049936,-0.002650835085660,-0.075454488396645,0.108593061566353,-0.310177505016327) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.037242673337460,0.034409184008837,-0.019184416159987,-0.145733162760735,0.026129081845284,0.006055165082216,-0.078658051788807,0.176184058189392,-0.199344009160995,0.005007092840970,-0.127731963992119,0.041564777493477,-0.097831003367901,-0.003364969044924,0.041011389344931,-0.202492043375969) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.315462648868561,-0.027032328769565,0.034850906580687,-0.132986307144165,-0.000613091571722,0.106896825134754,-0.014373093843460,-0.042575184255838,-0.009086627513170,0.032298911362886,-0.104821227490902,-0.412406384944916,-0.081692591309547,-0.001748785027303,0.115888983011246,-0.421598345041275) * MODEL1_texOff(vec2(0,0));
res += mat4(0.009113232605159,0.237698853015900,-0.153977721929550,0.023058608174324,-0.078745551407337,-0.160668238997459,0.048205420374870,0.121116459369659,0.064868003129959,0.188719004392624,0.005442719440907,-0.191188991069794,0.016118030995131,0.007438645232469,-0.071194663643837,-0.476888030767441) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.001940707792528,0.003161864588037,-0.058759834617376,0.016307966783643,-0.012822115793824,0.030640594661236,0.197288930416107,-0.129772976040840,0.081008307635784,-0.006867478601635,0.023305257782340,0.183714941143990,-0.054882314056158,-0.022528273984790,0.064104028046131,-0.102193422615528) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.000775040709414,-0.006894376128912,0.052758581936359,-0.064650155603886,0.047477964311838,-0.027035128325224,0.137933686375618,0.040024172514677,-0.096741229295731,0.079002551734447,-0.066440679132938,0.067978382110596,-0.086616963148117,0.017040802165866,0.041699320077896,-0.218979239463806) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.058414734899998,-0.031237296760082,0.039912689477205,-0.268331468105316,0.039606586098671,0.017626987770200,-0.064460620284081,-0.007342817261815,-0.114333339035511,0.066649027168751,-0.007640717551112,0.102042824029922,-0.058799467980862,0.017259638756514,0.030186071991920,-0.250444233417511) * MODEL1_texOff(vec2(1,1));
res += mat4(0.106678701937199,0.111592181026936,0.016703641042113,-0.259076267480850,-0.040270835161209,-0.011860642582178,0.100891664624214,-0.061202708631754,0.064817123115063,-0.004865712020546,0.056172020733356,0.220207542181015,0.167268037796021,-0.038473919034004,-0.065400026738644,-0.112401597201824) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.019741334021091,-0.003899178467691,0.095539674162865,-0.044064853340387,-0.040574681013823,-0.049200568348169,0.004132329486310,-0.021551836282015,0.005677488166839,-0.048614405095577,0.318812787532806,0.116099551320076,0.022269938141108,-0.044704820960760,0.126347810029984,-0.013748375698924) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.061511613428593,0.121914915740490,0.028079438954592,-0.089919276535511,-0.048065416514874,-0.002399357268587,0.119194313883781,-0.034948103129864,-0.050780199468136,-0.113030321896076,0.034123852849007,0.023964075371623,-0.061975348740816,0.074154153466225,-0.055895838886499,0.075869120657444) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.517562747001648,0.005633440334350,-0.180231928825378,0.056339692324400,-0.116022929549217,-0.039212893694639,0.142967611551285,-0.077263958752155,0.030236056074500,0.049919441342354,-0.011313689872622,0.012071155011654,0.098877131938934,-0.063255868852139,0.030947258695960,0.115532889962196) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.035353764891624,-0.636157333850861,0.071439944207668,0.075533770024776,-0.068896085023880,0.017860947176814,0.041988883167505,-0.015242466703057,-0.077482439577579,-0.157121166586876,0.145482763648033,-0.015181632712483,-0.054964832961559,0.072917640209198,0.153501853346825,-0.160015925765038) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.102636985480785,0.123106837272644,-0.119174174964428,0.274045944213867,-0.050059750676155,0.003244711551815,0.263250231742859,-0.055009495466948,-0.043213475495577,0.077336512506008,-0.188812598586082,-0.108962893486023,-0.151867523789406,0.200674012303352,0.123971030116081,0.034905303269625) * MODEL2_texOff(vec2(0,1));
res += mat4(0.177917748689651,0.086796656250954,-0.048189595341682,-0.171541109681129,-0.091761298477650,-0.010505015961826,0.052794363349676,-0.005049621220678,0.094970636069775,-0.002867561066523,0.049823950976133,0.074579633772373,0.100235320627689,-0.015194328501821,-0.173435762524605,-0.209163278341293) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.106921523809433,-0.253918111324310,-0.179495990276337,-0.064174830913544,-0.077279232442379,-0.083738446235657,0.030874891206622,0.123563304543495,0.104364223778248,-0.019609933719039,0.114126890897751,0.027625540271401,-0.044645074754953,0.116923823952675,-0.005714117083699,-0.140061199665070) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.050006952136755,0.139550760388374,-0.110578544437885,-0.343274235725403,0.039041083306074,0.071645453572273,0.125059247016907,-0.266224622726440,0.018803752958775,-0.057460196316242,-0.016449412330985,0.073626041412354,0.094410516321659,-0.055324401706457,-0.173832476139069,-0.004953664261848) * MODEL2_texOff(vec2(1,1));
res += mat4(0.009271934628487,-0.016608221456409,0.058391425758600,-0.173357948660851,-0.055876333266497,0.035787869244814,0.030463902279735,0.089165739715099,-0.001754809753038,0.055266339331865,0.255450397729874,-0.208374872803688,-0.061976213008165,0.012524534948170,-0.058493971824646,0.072045236825943) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.086395762860775,-0.054521515965462,-0.123618446290493,-0.190499618649483,0.033889986574650,-0.024559237062931,0.046044297516346,-0.048407871276140,0.038333017379045,0.027322247624397,0.089969314634800,-0.149716943502426,-0.080489151179790,-0.086181737482548,0.088613547384739,-0.082877010107040) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.023515297099948,-0.065785400569439,0.006350134965032,-0.005788160953671,-0.020141882821918,0.008944256231189,-0.130880832672119,0.001150717143901,0.054684668779373,0.093548908829689,0.269101619720459,-0.086596675217152,-0.036562722176313,0.028421049937606,-0.077134117484093,0.017703780904412) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.127218112349510,-0.094994612038136,0.170688271522522,-0.064467959105968,-0.059269696474075,-0.118160881102085,-0.042348325252533,0.038090288639069,0.055357154458761,-0.020479543134570,0.200163260102272,0.056116279214621,-0.172636985778809,-0.091558992862701,0.184171408414841,-0.019541943445802) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.055990260094404,-0.110691897571087,0.069356404244900,-0.183528333902359,0.013112496584654,0.089610576629639,-0.211611434817314,-0.171243622899055,0.115273177623749,0.034717965871096,-0.177806288003922,0.080217570066452,-0.087623722851276,0.327268153429031,0.063691630959511,-0.146156474947929) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.014769162051380,-0.114888042211533,0.121032081544399,-0.165616691112518,-0.034158136695623,0.088557459414005,-0.007470487151295,0.086717054247856,-0.015739759430289,0.042865566909313,0.047546062618494,0.060237128287554,0.044527057558298,-0.018465192988515,0.166012182831764,-0.116163566708565) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.029465155676007,-0.038331691175699,0.127790853381157,-0.304581612348557,0.000686000683345,0.065748296678066,-0.073137432336807,-0.077825002372265,0.020355619490147,-0.036905623972416,0.163475468754768,0.029784515500069,-0.126071631908417,-0.008143217302859,0.064493991434574,-0.093090295791626) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.033803839236498,-0.047828033566475,-0.024543479084969,-0.112167917191982,-0.049409195780754,0.009220530278981,0.004212347324938,-0.168365851044655,0.041034001857042,-0.025324268266559,-0.248625800013542,-0.109656438231468,-0.007676853798330,0.018404394388199,0.052406951785088,-0.055190045386553) * MODEL3_texOff(vec2(1,0));
res += mat4(0.102098144590855,0.076999977231026,0.103956051170826,-0.166638433933258,-0.019288675859571,-0.003566093510017,0.053338039666414,0.140828967094421,-0.048508755862713,0.003213138086721,-0.120112389326096,-0.145224034786224,-0.122331686317921,0.001559413038194,0.080073125660419,0.033556934446096) * MODEL3_texOff(vec2(1,1));
res += mat4(0.063367724418640,0.088050797581673,0.010329780168831,-0.058543421328068,0.100170098245144,0.063652902841568,0.028878210112453,0.270376652479172,0.078771598637104,0.045825876295567,-0.020134447142482,-0.071513868868351,-0.059494338929653,0.023449894040823,0.099824666976929,-0.020226545631886) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.035589911043644,-0.011264140717685,-0.157712265849113,-0.094776146113873,0.082275725901127,-0.252683281898499,-0.040035042911768,0.287258416414261,-0.033593427389860,-0.085699617862701,0.083732619881630,0.019177358597517,-0.012084016576409,-0.158168852329254,0.143665626645088,-0.032635159790516) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.006992163602263,-0.052210744470358,-0.068943969905376,0.093486405909061,0.111673854291439,-0.022591330111027,0.058540225028992,0.263344913721085,-0.002622668398544,0.060510870069265,0.033791363239288,0.051286377012730,0.118253178894520,0.123689480125904,0.065036475658417,0.101317398250103) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.191856175661087,0.076065234839916,-0.009369809180498,0.113444462418556,0.084753565490246,-0.035084873437881,-0.021451111882925,0.021417086943984,0.024653147906065,0.090131871402264,0.046411812305450,-0.035268165171146,-0.447187513113022,-0.110112585127354,0.017106533050537,-0.003991248551756) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.100186899304390,-0.155033454298973,0.149013757705688,-0.132801756262779,-0.036482613533735,0.174615055322647,-0.037542648613453,-0.038517270237207,-0.084756910800934,-0.247353821992874,0.128076806664467,-0.008124726824462,0.123220652341843,0.107712008059025,-0.053059566766024,-0.437386661767960) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.127223402261734,-0.040257997810841,0.132679611444473,-0.013320577330887,0.027223488315940,0.058382481336594,0.124256283044815,0.072939738631248,0.060007676482201,0.250585526227951,0.012114086188376,-0.205913186073303,0.129993751645088,-0.210104018449783,0.025894677266479,0.087622940540314) * MODEL4_texOff(vec2(0,1));
res += mat4(0.048150885850191,0.015956340357661,-0.003247982822359,0.012865006923676,-0.083516992628574,0.015133146196604,0.003944390453398,0.124258495867252,-0.013492597267032,-0.045783061534166,-0.042606186121702,-0.002251627855003,0.005114324856550,0.019851986318827,-0.106771200895309,0.374484300613403) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.015617357566953,0.065943643450737,0.132685884833336,-0.018508454784751,0.142649844288826,-0.086154147982597,0.022944334894419,0.151459768414497,-0.131423890590668,-0.065379731357098,0.063660360872746,-0.027160655707121,-0.083179034292698,-0.009721159934998,-0.123190268874168,0.170788347721100) * MODEL4_texOff(vec2(1,0));
res += mat4(0.008478811010718,-0.118431717157364,-0.034354671835899,-0.000380505924113,0.015348913148046,-0.001061557559296,0.156909584999084,0.308803081512451,-0.092191256582737,-0.042790070176125,-0.148601353168488,-0.020579950883985,-0.058933101594448,-0.021479453891516,-0.083119690418243,-0.151265949010849) * MODEL4_texOff(vec2(1,1));
res += mat4(0.074633724987507,0.014302841387689,-0.092951834201813,-0.024050761014223,0.121417805552483,0.032793384045362,0.137256279587746,0.060246281325817,-0.078864566981792,0.046093899756670,0.151154786348343,0.091524511575699,0.083907783031464,-0.128567948937416,-0.099666468799114,-0.375259608030319) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.055589195340872,-0.079426772892475,-0.197043120861053,0.003943797666579,-0.035590879619122,-0.029561804607511,0.111460864543915,-0.014738176018000,0.109127022325993,-0.038320183753967,-0.091484479606152,0.066630244255066,0.088800154626369,-0.158461436629295,0.060805980116129,-0.307550907135010) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.095374785363674,0.020499572157860,0.034665528684855,0.060198172926903,0.035413317382336,0.015242526307702,0.066323615610600,-0.009692088700831,0.003448352217674,-0.035766247659922,0.033306613564491,0.058633409440517,-0.003793990239501,-0.128339260816574,0.027855640277267,-0.288563460111618) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.017459383234382,0.009331370703876,-0.063616305589676,0.009931049309671,0.065326534211636,-0.003898980561644,0.014933984726667,-0.147509276866913,-0.024580050259829,0.156312182545662,-0.177526548504829,-0.205468893051147,-0.126386120915413,-0.061955492943525,-0.090879626572132,-0.194712266325951) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.101550124585629,0.029877200722694,0.156521111726761,-0.027446728199720,0.076773136854172,-0.029492676258087,-0.098044015467167,-0.123735271394253,0.209182366728783,0.077721849083900,-0.190442040562630,-0.051621511578560,0.070358812808990,-0.115372814238071,-0.061813458800316,-0.259539276361465) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.027518860995770,0.121095865964890,0.041818700730801,-0.086628019809723,-0.006860184017569,-0.045763555914164,-0.056398615241051,0.022460637614131,0.004479322582483,-0.163763180375099,0.041477896273136,0.144518539309502,0.062590129673481,-0.108711026608944,0.030438784509897,0.044349323958158) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.034383367747068,0.005931232590228,0.020580327138305,-0.008480315096676,0.037829011678696,-0.007975991815329,-0.018831906840205,0.035630658268929,-0.045062560588121,0.047698881477118,-0.019407138228416,-0.047724980860949,0.044551461935043,0.040279123932123,-0.119737461209297,-0.231807366013527) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.014557300135493,-0.046400494873524,-0.114315085113049,-0.071101643145084,-0.003689221804962,0.054444961249828,-0.012134909629822,0.097753308713436,0.036505788564682,0.026250358670950,-0.165252938866615,0.037205863744020,0.042012616991997,-0.032325822860003,-0.101893693208694,-0.084087066352367) * MODEL5_texOff(vec2(1,0));
res += mat4(0.006917059887201,0.106298513710499,0.011021271348000,0.037245888262987,-0.023418070748448,-0.004455300513655,0.089509747922421,0.082304909825325,-0.010168801061809,-0.036207344383001,0.050854850560427,0.094351857900620,0.008736004121602,-0.034016616642475,0.100963763892651,-0.032875843346119) * MODEL5_texOff(vec2(1,1));
res += mat4(0.039806250482798,-0.076840110123158,0.055850002914667,0.200620442628860,0.053172152489424,-0.000298140948871,0.034936595708132,0.039862573146820,-0.063963003456593,-0.091059908270836,-0.042753487825394,-0.006183484103531,0.024268953129649,0.020915014669299,0.024523029103875,0.053311891853809) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.119973599910736,0.073798492550850,-0.130588978528976,0.146955505013466,-0.034383453428745,-0.030861357226968,0.156090527772903,-0.080226100981236,0.013818340376019,-0.046939983963966,-0.107239946722984,0.017372544854879,-0.039819736033678,0.011832751333714,0.003157798899338,0.094020746648312) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.139464005827904,-0.158790200948715,-0.019837129861116,0.065970197319984,-0.135851904749870,0.083554439246655,0.116615153849125,-0.064673393964767,0.036620181053877,0.043515633791685,-0.023097859695554,-0.071190573275089,-0.040183648467064,0.039209533482790,0.081011943519115,-0.006748436484486) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.041113249957561,-0.078570745885372,-0.017432922497392,0.042736586183310,0.001713269157335,0.088908821344376,0.049137257039547,0.088960766792297,-0.116206236183643,0.040627889335155,-0.060421131551266,0.089586354792118,0.065878130495548,0.020213678479195,-0.239387303590775,0.036535251885653) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.052849374711514,-0.018631471320987,-0.237272650003433,-0.088135585188866,0.008256938308477,0.263471424579620,-0.150164291262627,-0.053418725728989,0.172195628285408,0.148902326822281,-0.166724070906639,0.034645665436983,-0.049545850604773,-0.026961971074343,-0.737228870391846,0.069813713431358) * MODEL6_texOff(vec2(0,0));
res += mat4(0.105925574898720,-0.359146296977997,0.043238498270512,-0.206723779439926,-0.039935871958733,-0.391676992177963,0.028018819168210,0.075025767087936,0.011926947161555,-0.297142684459686,-0.081027455627918,0.092063397169113,-0.046770986169577,0.062806926667690,-0.163814321160316,0.070592880249023) * MODEL6_texOff(vec2(0,1));
res += mat4(0.010997963137925,-0.051131315529346,0.040552541613579,0.046351570636034,0.087977349758148,-0.023919975385070,0.026119880378246,-0.059881813824177,0.094072602689266,0.001971493940800,-0.062349662184715,0.057036582380533,0.105257600545883,0.026529503986239,-0.248575434088707,-0.028699461370707) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.029524125158787,-0.102380730211735,-0.065023012459278,0.027470823377371,-0.153403952717781,0.033695567399263,-0.054686781018972,0.123144127428532,-0.037587806582451,-0.181181013584137,0.009253619238734,0.183875054121017,-0.067984394729137,-0.056670196354389,-0.908881843090057,0.303018331527710) * MODEL6_texOff(vec2(1,0));
res += mat4(0.090337589383125,-0.040730170905590,0.069761618971825,-0.122489742934704,0.014645788818598,-0.139315053820610,-0.075229689478874,-0.198678612709045,-0.067573413252831,-0.035287991166115,0.108152084052563,-0.099170915782452,-0.027264785021544,0.035863492637873,-0.268824815750122,0.214324966073036) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.050497129559517,-0.084884345531464,-0.049202751368284,0.131351545453072) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_2x_Photo] mapping 2_2

vec4 hook()
{
vec4 res = vec4(-0.031201034784317,0.007306299638003,0.072337955236435,0.110882326960564);
res += mat4(0.035433504730463,0.071807317435741,-0.079143233597279,0.129690602421761,0.046089448034763,-0.060216404497623,0.067122787237167,0.067850537598133,-0.035430047661066,-0.191716387867928,-0.095678091049194,-0.082615926861763,-0.002238871762529,-0.254751980304718,0.063246466219425,-0.107959277927876) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.068867929279804,-0.068005912005901,-0.004676837474108,-0.105927772819996,-0.129665449261665,0.040047198534012,-0.034729797393084,-0.084813855588436,0.054912958294153,0.025311036035419,0.039787303656340,-0.119046710431576,0.164798885583878,-0.167218580842018,0.086244210600853,-0.295041501522064) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.036136344075203,0.096631698310375,-0.065587654709816,0.005754340905696,-0.037918083369732,-0.005164166446775,0.009699673391879,0.001969680655748,0.156346425414085,-0.067960709333420,0.026453278958797,-0.041831173002720,-0.053754866123199,-0.229631900787354,0.027374587953091,-0.074370719492435) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.034070808440447,-0.198980718851089,0.174372091889381,-0.041713636368513,-0.071489967405796,0.012982763350010,-0.058467436581850,-0.073066532611847,-0.192390635609627,0.120124988257885,-0.137394919991493,-0.176906704902649,0.088496007025242,-0.236165732145309,-0.030976554378867,0.023887060582638) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.238939017057419,-0.015147026628256,0.031128147616982,-0.148681715130806,-0.078284211456776,0.025388561189175,-0.072542347013950,0.020132457837462,0.002604030305520,-0.357416898012161,0.187728330492973,0.116761125624180,0.277842760086060,-0.059213269501925,0.022006608545780,0.026700856164098) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.010524514131248,0.192650899291039,-0.073004014790058,-0.092145301401615,0.062493603676558,0.035221692174673,-0.015115273185074,0.119987890124321,-0.046583075076342,0.058155015110970,0.000643995706923,0.178467556834221,-0.129310071468353,-0.178220137953758,0.023233924061060,-0.038047421723604) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.080889821052551,0.094252690672874,-0.015250171534717,0.018490746617317,0.108802273869514,-0.042939558625221,0.091245174407959,0.081490270793438,-0.018517425283790,0.116922289133072,0.002908605383709,0.044366557151079,-0.060236778110266,-0.242149472236633,0.016092447564006,0.005221320316195) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.098064392805099,0.275747895240784,0.054355353116989,-0.019740350544453,0.035086337476969,0.079519920051098,-0.008139526471496,-0.128781229257584,0.033010214567184,-0.261012822389603,0.026110613718629,0.036857929080725,-0.054906550794840,-0.316680997610092,0.022429274395108,0.015241972170770) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.162292435765266,0.197479277849197,0.056586124002934,0.010760826058686,0.087109699845314,0.025783795863390,0.037777505815029,0.024023270234466,-0.072110965847969,0.164595291018486,-0.029495583847165,0.112134672701359,-0.092632927000523,-0.314897686243057,0.015237448737025,0.065384171903133) * MODEL1_texOff(vec2(1,1));
res += mat4(0.090463295578957,-0.146159052848816,0.058760665357113,0.095371827483177,0.074710890650749,0.003516901750118,0.097739882767200,0.150833114981651,0.072079919278622,0.101740449666977,-0.054647628217936,-0.234774112701416,-0.097640953958035,0.030942726880312,0.125155627727509,-0.057296469807625) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.082241468131542,0.138445094227791,0.026018755510449,0.050784181803465,0.101463541388512,0.013594028539956,-0.010681509971619,0.273587346076965,0.150960847735405,0.056773081421852,-0.037640105932951,-0.474839717149734,-0.241992339491844,0.003672000719234,-0.101929709315300,0.002412090077996) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.075988486409187,0.083439521491528,0.008593973703682,-0.001663157832809,0.062941923737526,0.121023185551167,0.024083450436592,0.204807966947556,0.128124698996544,0.383237898349762,-0.046872727572918,0.041888114064932,-0.066628396511078,0.040838692337275,0.124665781855583,-0.158991143107414) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.116161294281483,0.051275167614222,-0.084477461874485,0.266618847846985,0.029891671612859,0.127246066927910,0.076641835272312,0.055547945201397,0.154395878314972,-0.141903519630432,-0.066519454121590,-0.176213502883911,0.110386610031128,-0.088609956204891,-0.025585014373064,0.482806801795959) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.213008686900139,0.236827641725540,-0.181105688214302,-0.115823656320572,0.101360671222210,-0.084454447031021,-0.067460656166077,0.195429161190987,0.064074136316776,0.008526384830475,0.040210548788309,-0.155448496341705,-0.240261137485504,-0.002180579118431,-0.030765129253268,-0.195368975400925) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.008761912584305,0.118480645120144,0.002076475415379,0.013785487972200,0.146807909011841,0.116666026413441,0.014711663126945,0.174023300409317,0.095672041177750,0.150038242340088,-0.162722766399384,0.022529425099492,-0.027283897623420,0.189740002155304,0.025147767737508,-0.075149737298489) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.009145846590400,-0.210396558046341,-0.032796356827021,0.128748849034309,-0.008505434729159,0.039941780269146,-0.077825188636780,-0.116112306714058,0.148026049137115,-0.036895830184221,0.014534283429384,-0.031493000686169,-0.010908073745668,-0.045856419950724,-0.042734500020742,0.114779785275459) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.159308478236198,0.020928038284183,0.094804137945175,-0.090827308595181,0.071612879633904,-0.046643696725368,-0.087983436882496,-0.018305800855160,0.009233127348125,0.249498054385185,-0.008487981744111,-0.126128092408180,0.310187101364136,0.081673339009285,0.012447046115994,0.056728232651949) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.195250555872917,0.071129895746708,0.082383908331394,0.037655692547560,0.057298604398966,0.047620106488466,0.024672765284777,0.122771643102169,0.109196715056896,0.170903116464615,-0.067833676934242,0.012990530580282,-0.008510914631188,-0.022373588755727,-0.076161064207554,-0.042850852012634) * MODEL2_texOff(vec2(1,1));
res += mat4(0.082823544740677,0.121538825333118,0.068863131105900,-0.259143948554993,-0.038753852248192,-0.089316576719284,0.063390478491783,0.276690423488617,0.002262342488393,-0.175991550087929,0.048483110964298,0.010204404592514,-0.012305696494877,0.015960868448019,0.102722153067589,0.118249982595444) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.027043491601944,-0.010535011067986,0.100094161927700,0.008552410639822,-0.109849348664284,-0.051635362207890,0.037997569888830,0.176259741187096,0.070679098367691,0.098055511713028,0.098990961909294,-0.016529491171241,0.022513831034303,-0.006840552669019,-0.008886338211596,0.057976242154837) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.027975602075458,-0.164859861135483,-0.068936996161938,-0.001783627201803,0.027039211243391,-0.036282327026129,-0.024387780576944,0.077224694192410,0.019780995324254,-0.114728964865208,-0.049263089895248,-0.009668998420238,-0.046791080385447,-0.084200315177441,-0.013288422487676,-0.102084912359715) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.149285435676575,0.077990435063839,0.133186846971512,-0.109588474035263,-0.247691407799721,0.081414073705673,0.154839694499969,-0.073740124702454,0.050766762346029,-0.039192941039801,0.092736519873142,-0.058855712413788,-0.004163051489741,0.110884994268417,-0.101464129984379,-0.009507866576314) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.228007882833481,-0.099591307342052,0.208917409181595,-0.126910373568535,-0.167967677116394,-0.122606150805950,0.088213779032230,-0.328463822603226,0.142161697149277,0.063740551471710,0.180202513933182,0.069841846823692,0.093386530876160,-0.041768662631512,-0.186055839061737,-0.103054910898209) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.077908143401146,0.048628125339746,0.066044986248016,-0.006273793056607,-0.014756558462977,-0.054106973111629,-0.069600388407707,-0.061518646776676,-0.030180795118213,-0.063142016530037,0.065732680261135,0.000281737709884,0.116960383951664,-0.014660669490695,-0.021411415189505,-0.155239105224609) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.016650052741170,0.124539360404015,0.164404645562172,0.075910441577435,-0.058607298880816,0.098864115774632,-0.176368370652199,-0.165788441896439,-0.006077955942601,0.114340908825397,0.012048937380314,0.000960446835961,0.058744359761477,0.212574183940887,-0.050502847880125,-0.110536739230156) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.031909771263599,0.010295777581632,0.017335876822472,0.009125473909080,0.116763681173325,-0.118295691907406,-0.063431806862354,-0.074650861322880,0.002207444980741,0.117256931960583,-0.048167757689953,0.152941152453423,-0.118506357073784,-0.013621899299324,-0.133115977048874,0.071884810924530) * MODEL3_texOff(vec2(1,0));
res += mat4(0.066982105374336,0.097828358411789,0.018400015309453,0.110977247357368,0.177538007497787,-0.133257046341896,-0.011151776649058,0.004450938198715,0.056226130574942,-0.219550445675850,-0.062163129448891,0.086507245898247,-0.076050080358982,0.117467120289803,0.051804851740599,0.079175740480423) * MODEL3_texOff(vec2(1,1));
res += mat4(0.116992816329002,0.018091991543770,0.133031383156776,-0.071816988289356,0.081247836351395,-0.177122935652733,-0.139845237135887,0.119362838566303,-0.049118429422379,-0.019798679277301,0.005951226223260,0.007568533066660,-0.021710038185120,0.044132117182016,-0.031238995492458,0.226357072591782) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.095648132264614,-0.021418346092105,0.000268036266789,0.212276846170425,-0.054880823940039,-0.045494459569454,-0.170241758227348,0.016059642657638,0.082222595810890,-0.017264569178224,-0.086842060089111,0.049050129950047,0.017489779740572,0.196593537926674,-0.065773807466030,0.151092946529388) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.096453480422497,-0.088029496371746,-0.056781131774187,0.003137772437185,0.100233137607574,0.030782656744123,-0.055795371532440,0.100961185991764,0.075070783495903,0.082655578851700,0.060128930956125,0.084213517606258,0.000179565628059,0.054496198892593,0.038344811648130,0.092210903763771) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.049848806113005,-0.076543360948563,-0.141999334096909,0.251295864582062,-0.153746813535690,-0.099973075091839,0.069223180413246,-0.045145299285650,0.095971040427685,-0.149885073304176,0.074861571192741,-0.020394146442413,-0.041168473660946,-0.087210141122341,0.202700763940811,-0.014754236675799) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.252727776765823,0.128540322184563,-0.012804011814296,-0.245491579174995,-0.062216538935900,-0.132143139839172,-0.022836735472083,0.037099286913872,0.101533256471157,0.057930190116167,-0.092192918062210,-0.010710220783949,-0.141923129558563,0.176610007882118,0.109925225377083,0.000957000127528) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.099006123840809,-0.163033008575439,-0.045211352407932,0.029093848541379,0.106296941637993,0.046002570539713,-0.082096092402935,0.171997144818306,0.013798659667373,0.129621312022209,-0.027751434594393,-0.028110237792134,-0.099391520023346,0.073836334049702,-0.094647549092770,0.132222205400467) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.042414397001266,-0.097876340150833,-0.042004268616438,-0.041608449071646,0.065378151834011,-0.002841412788257,0.012887560762465,0.135231018066406,0.000443269236712,0.030332090333104,-0.008078177459538,-0.080259092152119,-0.178917065262794,0.084670700132847,-0.026097340509295,0.017568603157997) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.133120641112328,0.008438694290817,-0.139858409762383,0.155378460884094,0.342253774404526,0.091995932161808,0.039921224117279,0.013171829283237,0.055629886686802,0.090416930615902,0.047599934041500,0.114456459879875,-0.523319661617279,-0.039223056286573,-0.136839836835861,-0.042969211935997) * MODEL4_texOff(vec2(1,0));
res += mat4(0.102924853563309,-0.070079289376736,-0.023093072697520,-0.021722834557295,0.016979582607746,0.105771273374557,-0.072270840406418,0.055229417979717,-0.016470616683364,0.005095276981592,-0.033056739717722,0.114344269037247,-0.115806020796299,-0.090286329388618,0.014111349359155,-0.048955380916595) * MODEL4_texOff(vec2(1,1));
res += mat4(0.028962953016162,0.013640239834785,-0.073726922273636,0.275090575218201,0.068523891270161,0.033346623182297,-0.064620204269886,0.003329949220642,0.087671294808388,-0.043046616017818,0.010852565057576,-0.146428376436234,-0.013818720355630,0.260544538497925,-0.042886052280664,-0.099574103951454) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.110555693507195,-0.013075274415314,0.012256821617484,-0.127976998686790,0.045561604201794,0.201804906129837,0.017902858555317,0.042235024273396,-0.050031024962664,0.137668624520302,0.120532266795635,-0.032585173845291,-0.033013053238392,0.106569789350033,-0.015633508563042,0.003245850792155) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.031428184360266,0.109770275652409,-0.074886105954647,0.112053424119949,0.036029808223248,0.054576039314270,-0.034384604543447,0.121572010219097,-0.005799657665193,-0.144356712698936,0.014293558895588,-0.086940363049507,0.059928596019745,-0.057612046599388,0.028101265430450,0.038335129618645) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.001937214634381,-0.068557225167751,-0.164024129509926,-0.117103464901447,-0.006894360296428,0.120848760008812,-0.163023844361305,-0.021535167470574,-0.141852498054504,-0.114111714065075,0.081233844161034,-0.079127117991447,0.025822680443525,-0.011254638433456,0.038056928664446,0.003299764357507) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.090751171112061,0.000498216948472,-0.039061982184649,0.104657597839832,0.020784527063370,-0.016325613483787,-0.009606802836061,0.005919964984059,-0.149367272853851,0.090550191700459,0.189894214272499,-0.101628780364990,-0.004823697730899,0.060905706137419,-0.016939595341682,0.027428966015577) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.013348395004869,0.117137759923935,0.033629279583693,0.010906160809100,0.018010044470429,-0.037508267909288,-0.002728949533775,0.030338445678353,-0.113035261631012,-0.072377569973469,0.008100933395326,-0.106640733778477,0.059875462204218,-0.082810528576374,-0.023596182465553,-0.032123193144798) * MODEL5_texOff(vec2(0,1));
res += mat4(0.097122013568878,0.042119383811951,-0.088600635528564,-0.036209546029568,-0.012316199950874,0.077938877046108,0.047605890780687,0.122113943099976,0.275028467178345,-0.067707054316998,0.178443446755409,-0.247281461954117,-0.056817114353180,0.246235236525536,-0.025769647210836,-0.088106073439121) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.340546905994415,0.038780443370342,-0.067861214280128,-0.092321693897247,0.017016228288412,0.088709160685539,-0.098844029009342,0.060099843889475,-0.142456069588661,-0.133960098028183,0.103414475917816,-0.145725294947624,-0.021752240136266,0.134977027773857,-0.058178473263979,-0.040753871202469) * MODEL5_texOff(vec2(1,0));
res += mat4(0.096187725663185,0.036667987704277,-0.071371220052242,0.094987139105797,0.053236771374941,0.110504806041718,-0.019974559545517,0.048093419522047,-0.027698764577508,0.057595811784267,0.079220876097679,-0.105093985795975,-0.050007209181786,-0.036109387874603,0.043292328715324,-0.002438188996166) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.132396832108498,0.007697434164584,0.102264568209648,-0.248891338706017,0.026405137032270,0.001809523906559,0.007316871080548,0.183915823698044,0.003707661060616,0.110686309635639,0.058338150382042,-0.042980317026377,-0.019156176596880,-0.024766493588686,-0.048917900770903,-0.105597540736198) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.125738710165024,-0.047455634921789,-0.009798208251595,0.029774092137814,0.065651431679726,0.015081023797393,0.011688383296132,0.013264569453895,-0.000380662735552,-0.067424967885017,0.036422260105610,-0.081872597336769,0.047147367149591,-0.049015481024981,-0.051974046975374,-0.089017786085606) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.146839722990990,-0.078427404165268,0.071134217083454,-0.033493455499411,0.053678672760725,0.008775980211794,-0.123785890638828,-0.081144653260708,-0.151530578732491,0.027766944840550,0.032416708767414,0.059159737080336,0.039394557476044,-0.020815119147301,0.022628799080849,-0.098212316632271) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.162007957696915,0.084936484694481,0.081526666879654,-0.276265501976013,-0.218755379319191,-0.051144078373909,0.060779180377722,0.069118902087212,-0.035714510828257,0.143983960151672,0.233431741595268,-0.407771140336990,-0.041854254901409,-0.073056653141975,-0.293662786483765,-0.449104011058807) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.029649863019586,-0.119562715291977,0.060801222920418,0.167273655533791,-0.400227129459381,0.146894559264183,0.096483811736107,-0.111341603100300,-0.040448389947414,-0.163726255297661,-0.235439077019691,-0.089338801801205,-0.031259350478649,0.093955338001251,-0.110367268323898,0.020508747547865) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.108729057013988,-0.116235882043839,-0.000734595232643,-0.034957051277161,-0.022531084716320,-0.086787424981594,-0.099406130611897,0.112038008868694,0.041343949735165,0.066462188959122,0.137008219957352,0.109945744276047,0.037275586277246,-0.108841441571712,-0.030511094257236,-0.042681429535151) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.097937300801277,0.170145958662033,-0.011548416689038,-0.030955156311393,-0.125641033053398,-0.090722247958183,-0.038714732974768,0.061251468956470,0.073809176683426,0.360968232154846,-0.519398987293243,0.053756922483444,-0.046681080013514,-0.247646957635880,-0.104991883039474,-0.138566464185715) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.041765011847019,-0.019852839410305,0.140727207064629,-0.014631072990596,0.039026781916618,0.099393218755722,-0.039992511272430,0.084514081478119,-0.398104250431061,-0.338637083768845,-0.392028212547302,0.032660085707903,-0.092169798910618,-0.283888757228851,-0.230206906795502,0.130039900541306) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.061719439923763,-0.122467786073685,0.083722792565823,-0.072390854358673,0.009858897887170,-0.073700644075871,0.011688532307744,0.161655411124229,0.014547040686011,0.167312189936638,-0.053050920367241,0.011359835043550,0.095734134316444,-0.263600707054138,-0.025665465742350,0.025287959724665) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.258201509714127,0.005092623643577,-0.294162005186081,0.021615698933601) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_2x_Photo] mapping 2_3

vec4 hook()
{
vec4 res = vec4(-0.000597461941652,-0.013379887677729,-0.093036539852619,0.113157249987125);
res += mat4(-0.065541163086891,-0.013845246285200,-0.227977722883224,0.006715870928019,-0.182723924517632,-0.076430372893810,0.020670372992754,0.047957409173250,0.048321206122637,-0.026310639455914,0.103468403220177,0.098135344684124,0.047340668737888,-0.046902284026146,0.019459115341306,0.045473109930754) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.000502441660501,-0.271803259849548,-0.246993914246559,-0.017260717228055,-0.009030021727085,-0.147718548774719,0.136505663394928,0.149071961641312,0.131641224026680,0.003334996523336,0.071772590279579,0.057369794696569,0.015343046747148,-0.109596326947212,0.054628737270832,0.050774693489075) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.043767586350441,0.015892328694463,-0.074270665645599,-0.383518725633621,-0.082135073840618,0.009624822065234,-0.191229835152626,0.009765788912773,0.033342156559229,-0.004852179437876,0.096941478550434,0.044281382113695,0.068901881575584,-0.138344153761864,0.002246120013297,-0.057209115475416) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.050407432019711,-0.089513666927814,0.085091173648834,-0.121392644941807,-0.064540386199951,-0.014477962628007,-0.147501021623611,-0.025094611570239,0.148058861494064,-0.206742152571678,0.172526732087135,-0.011259645223618,0.055887706577778,-0.021295081824064,0.022355128079653,0.061505507677794) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.037814661860466,-0.271166294813156,-0.077960126101971,-0.039466012269258,0.078255549073219,0.048425473272800,0.080945894122124,-0.026308273896575,-0.001663720700890,-0.156319081783295,0.077169582247734,-0.114085674285889,0.020023908466101,-0.209434613585472,0.137333765625954,0.046999830752611) * MODEL1_texOff(vec2(0,0));
res += mat4(0.093067415058613,-0.190660476684570,-0.118277125060558,-0.426518142223358,0.075875490903854,0.110334962606430,0.039301648736000,0.081981450319290,0.030267069116235,-0.009351853281260,0.031336445361376,0.029134193435311,0.056946087628603,-0.023805905133486,-0.122355364263058,-0.021396372467279) * MODEL1_texOff(vec2(0,1));
res += mat4(0.044131543487310,0.138149425387383,0.027875375002623,0.023730920627713,0.099317342042923,0.061838779598475,0.154309019446373,0.013607677072287,0.071251466870308,-0.013547314330935,-0.083079844713211,-0.020134156569839,0.021360654383898,0.031739443540573,0.017868448048830,0.038546435534954) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.019685870036483,0.153392821550369,0.121161505579948,-0.013587850145996,0.025538193061948,0.080286912620068,-0.065698109567165,0.028832027688622,-0.020077750086784,-0.241932213306427,-0.139818444848061,0.030655559152365,0.085650905966759,0.054548975080252,0.067891627550125,0.025561954826117) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.040091905742884,0.097061328589916,0.216514661908150,-0.078773804008961,0.099095292389393,-0.020277833566070,-0.104549981653690,0.027422867715359,0.024407779797912,0.029357606545091,-0.051294047385454,-0.055847223848104,0.056734245270491,0.102566979825497,0.048846788704395,0.002133882837370) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.056987509131432,-0.137541383504868,-0.127225577831268,-0.069656558334827,0.121849060058594,-0.156780987977982,0.056494817137718,0.017096100375056,-0.140216618776321,0.053732294589281,-0.195465683937073,-0.020553685724735,0.278404533863068,-0.104887776076794,-0.044786415994167,-0.039117645472288) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.068296596407890,-0.184337243437767,0.159259513020515,0.017477311193943,0.217701628804207,-0.257449328899384,0.086884543299675,0.047388274222612,-0.091652169823647,0.048767831176519,0.157259613275528,0.006404575426131,0.276477247476578,-0.066129297018051,-0.031954046338797,-0.002952368929982) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.026735341176391,-0.085861608386040,0.017816631123424,-0.103789664804935,0.062850683927536,-0.371295601129532,0.018760439008474,0.040326535701752,-0.079018197953701,-0.026714107021689,0.024828080087900,0.098914191126823,-0.101779639720917,-0.130438014864922,-0.003425146918744,-0.061713628470898) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.158578932285309,-0.026733880862594,0.016217641532421,-0.074349284172058,-0.116212569177151,-0.144540488719940,0.030323188751936,-0.015899527817965,0.092538438737392,-0.041627809405327,-0.064854353666306,-0.051746226847172,0.031540114432573,-0.130359500646591,0.036304816603661,-0.027017394080758) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.051887825131416,-0.143943116068840,-0.101943887770176,0.212742313742638,0.055707447230816,-0.089577928185463,-0.070684418082237,-0.095884457230568,0.037404838949442,0.029457351192832,0.045262817293406,0.003580488963053,-0.091936610639095,-0.118745438754559,-0.005213157739490,0.027741704136133) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.110538348555565,-0.033117707818747,-0.126341179013252,-0.027124499902129,0.180078536272049,-0.370354324579239,-0.059572625905275,0.173221409320831,0.036375574767590,0.006718900054693,-0.102186597883701,0.014274919405580,-0.070362888276577,0.004213775042444,-0.180136352777481,0.166475266218185) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.000863008201122,0.139635503292084,0.040878076106310,-0.113625623285770,0.064055748283863,-0.119117833673954,-0.072137393057346,-0.090747199952602,0.058909755200148,0.023218598216772,-0.061769582331181,0.009825009852648,-0.099250160157681,-0.090438440442085,0.044743623584509,-0.092939525842667) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.006679122336209,-0.047224767506123,0.207969740033150,0.104308590292931,0.224085599184036,-0.193342790007591,-0.096870861947536,0.076087489724159,0.080540977418423,0.015272530727088,-0.169216707348824,-0.007721322122961,-0.174651980400085,-0.101441808044910,0.212988927960396,0.006509246770293) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.055152744054794,0.033208359032869,0.241746038198471,-0.109324030578136,0.151351168751717,-0.313059657812119,-0.054968196898699,-0.093634761869907,0.059479691088200,-0.092156097292900,0.098864674568176,-0.111332915723324,-0.121755838394165,-0.117965593934059,-0.146762594580650,0.018627414479852) * MODEL2_texOff(vec2(1,1));
res += mat4(0.017735231667757,-0.046427585184574,-0.021495986729860,-0.010868540033698,0.018801473081112,-0.101149052381516,0.176197320222855,-0.009016267955303,0.037636511027813,-0.048310652375221,0.272937029600143,0.061317790299654,0.070701166987419,0.013467967510223,0.016370540484786,-0.006551935337484) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.018259804695845,0.059407100081444,0.224201917648315,-0.066695407032967,0.027948880568147,0.037746760994196,-0.149186447262764,-0.085223272442818,0.001623017829843,0.077233225107193,0.234969943761826,0.020486108958721,-0.112049475312233,0.040170975029469,-0.205885156989098,0.036970883607864) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.068085044622421,0.137189701199532,0.039981540292501,-0.011474448256195,0.231158465147018,0.058597497642040,-0.038046836853027,0.025424951687455,0.075213886797428,0.186238288879395,0.104582257568836,0.014641192741692,-0.047399666160345,-0.072932206094265,-0.043633952736855,0.132029771804810) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.005738667212427,-0.025186719372869,0.051178064197302,0.024439778178930,-0.109795361757278,-0.198241874575615,0.061261098831892,-0.071667745709419,0.080979980528355,0.002320698462427,0.070271797478199,0.058340355753899,-0.009102695621550,-0.314737021923065,0.178614228963852,0.056170232594013) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.060894086956978,-0.153109624981880,-0.096284471452236,0.056342396885157,-0.139757141470909,0.711965799331665,0.006987879518420,-0.172189608216286,-0.218150779604912,0.029798008501530,-0.159988597035408,0.052758876234293,-0.120498843491077,-0.260434150695801,-0.038764480501413,-0.009217457845807) * MODEL3_texOff(vec2(0,0));
res += mat4(0.031366813927889,-0.021106183528900,0.061424486339092,-0.075439728796482,0.072087615728378,0.208818078041077,-0.117351874709129,0.224057808518410,0.012587553821504,0.068893499672413,-0.111550852656364,0.192729547619820,0.003083751071244,-0.392355501651764,0.037329033017159,-0.134017363190651) * MODEL3_texOff(vec2(0,1));
res += mat4(0.179316461086273,0.004712000954896,0.042335953563452,-0.001620639930479,0.004484654404223,-0.170909628272057,-0.019837561994791,-0.006618998479098,0.000099049939308,0.091923683881760,0.166793033480644,0.055486485362053,0.184476554393768,-0.204228863120079,-0.285516262054443,0.058838859200478) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.072312824428082,-0.131020471453667,-0.091246396303177,-0.007421469315886,-0.000036893470678,-0.130680516362190,0.045047339051962,-0.008263966068625,0.034235898405313,0.031744167208672,0.018612027168274,0.008090263232589,0.149116843938828,-0.339002490043640,-0.099620908498764,-0.059291996061802) * MODEL3_texOff(vec2(1,0));
res += mat4(0.086685195565224,-0.117073230445385,-0.126213923096657,-0.137207925319672,0.018612721934915,-0.027852198109031,-0.053622841835022,0.069323457777500,0.096231400966644,0.051885180175304,0.013879661448300,0.040490783751011,0.123020753264427,-0.079483151435852,0.159180134534836,-0.025060286745429) * MODEL3_texOff(vec2(1,1));
res += mat4(0.063401423394680,-0.021663529798388,-0.079056680202484,-0.023406105116010,-0.060707397758961,0.051981855183840,0.195975124835968,-0.045486260205507,-0.061266310513020,0.057048756629229,-0.040102779865265,0.094801947474480,-0.095052555203438,-0.125854015350342,0.061886496841908,-0.021300621330738) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.341453790664673,0.047343440353870,0.107708908617496,-0.021287169307470,0.094061583280563,-0.083272740244865,-0.074367202818394,0.078652918338776,0.041218306869268,-0.070700161159039,0.165108978748322,-0.093685179948807,-0.183176711201668,0.012761748395860,-0.125713616609573,-0.086097709834576) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.002694330876693,0.111908145248890,0.017781451344490,-0.053057722747326,-0.002043828135356,-0.086346469819546,0.029984900727868,0.163987874984741,0.094727955758572,-0.103045307099819,-0.025542290881276,0.007760966196656,-0.053867172449827,0.085035264492035,0.098143838346004,-0.179981932044029) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.091498598456383,-0.002455834997818,-0.095387354493141,-0.013671375811100,-0.166322112083435,0.040236502885818,0.059274256229401,-0.000384251121432,-0.189821824431419,0.097341239452362,-0.102200932800770,0.001205151085742,0.100283309817314,-0.128281697630882,0.308928489685059,0.092867031693459) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.212570562958717,-0.385055989027023,-0.146594852209091,-0.049206953495741,0.103707797825336,0.315770924091339,0.148028776049614,0.015009408816695,-0.067981824278831,0.116699270904064,-0.118690893054008,0.018919840455055,-0.026092119514942,0.189456790685654,-0.035137962549925,-0.440783143043518) * MODEL4_texOff(vec2(0,0));
res += mat4(0.040300659835339,-0.143889993429184,-0.137388586997986,0.337079375982285,0.112368986010551,-0.052472315728664,0.273638218641281,-0.218276098370552,-0.050309646874666,0.025388717651367,0.018286578357220,-0.044576425105333,-0.033189319074154,0.051375418901443,0.017981976270676,0.002006164053455) * MODEL4_texOff(vec2(0,1));
res += mat4(0.015979260206223,-0.093978740274906,-0.028081677854061,0.009720081463456,-0.022007672116160,-0.035021103918552,0.010967224836349,-0.050374880433083,-0.034423992037773,0.009059413336217,-0.047796238213778,-0.002614894183353,0.060743778944016,0.041234500706196,-0.113270319998264,-0.049436088651419) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.026795113459229,-0.190157204866409,0.006901363376528,0.003172908211127,0.074127122759819,-0.048227790743113,-0.080110721290112,-0.129607632756233,0.114191472530365,-0.159611344337463,0.076179072260857,-0.126005634665489,-0.071940265595913,0.241035252809525,0.027497537434101,-0.183684006333351) * MODEL4_texOff(vec2(1,0));
res += mat4(0.007170571479946,-0.197706818580627,-0.098527289927006,0.189886182546616,0.043390598148108,-0.031576987355947,0.029777538031340,0.024324078112841,0.071528330445290,-0.132841691374779,0.023100437596440,-0.145034447312355,-0.161219134926796,0.206127747893333,-0.011852012947202,0.153623864054680) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.236552521586418,-0.221674546599388,0.132453441619873,-0.063961356878281,-0.022698013111949,-0.032261203974485,-0.060727961361408,0.007451307494193,-0.029603317379951,0.109187670052052,-0.034479126334190,-0.047301672399044,0.078028149902821,-0.047837395220995,-0.124855659902096,-0.141537964344025) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.147478178143501,-0.050044290721416,0.172584474086761,-0.030460409820080,-0.042393654584885,0.098073177039623,-0.120896555483341,-0.014144117012620,-0.196053758263588,0.175309270620346,0.175760984420776,0.020629830658436,0.098340317606926,-0.278310179710388,-0.158177077770233,-0.157594516873360) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.062922105193138,-0.058811753988266,0.099164359271526,-0.069243527948856,0.030287697911263,0.019238684326410,-0.104559347033501,-0.033917628228664,-0.137571826577187,0.137390688061714,0.011600595898926,-0.103956922888756,0.090779036283493,-0.072208680212498,0.086904525756836,-0.359516769647598) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.095199748873711,-0.097877949476242,0.082298062741756,0.032069880515337,-0.025494493544102,-0.006521141622216,-0.059829827398062,0.028728973120451,-0.020342659205198,-0.179344370961189,-0.055430438369513,-0.119444325566292,0.069678410887718,0.051940158009529,0.015823476016521,0.050716400146484) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.069623164832592,0.027633622288704,0.117075130343437,-0.113014250993729,-0.119149178266525,0.019469326362014,-0.190964937210083,-0.041696690022945,-0.117346256971359,0.011699057184160,-0.121102139353752,-0.145780801773071,0.143357366323471,-0.022114360705018,-0.116356946527958,0.005592735484242) * MODEL5_texOff(vec2(0,0));
res += mat4(0.024656467139721,-0.086298823356628,-0.000405611179303,0.007798684295267,0.024376934394240,0.029334248974919,-0.118788383901119,-0.110192507505417,-0.228401377797127,0.158882707357407,0.016298837959766,0.108820803463459,0.034618001431227,0.001701966393739,-0.150469914078712,-0.187477335333824) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.002979467622936,-0.085351645946503,0.024296980351210,0.008638110011816,0.043738134205341,0.040137644857168,-0.200441420078278,0.054824549704790,-0.107936620712280,-0.002680847188458,0.043803531676531,-0.035693787038326,-0.124802812933922,0.000362257065717,-0.213720664381981,-0.029703570529819) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.037316128611565,0.064234524965286,-0.064350396394730,0.102700449526310,0.027565861120820,0.022324925288558,-0.190338239073753,-0.004317682236433,-0.076561607420444,0.174509614706039,0.059877645224333,-0.210355237126350,-0.037151109427214,0.087072536349297,0.008010771125555,-0.094482697546482) * MODEL5_texOff(vec2(1,0));
res += mat4(0.118418872356415,-0.101287893950939,-0.041926842182875,0.000185402910574,-0.011957558803260,0.023661376908422,-0.069450698792934,-0.035023465752602,-0.149721235036850,0.145574107766151,0.090202361345291,0.037562891840935,0.033467460423708,0.099544852972031,0.141218110918999,-0.120664112269878) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.043235436081886,0.137304335832596,0.010185925289989,0.015531412325799,-0.153109192848206,-0.038462173193693,0.048974808305502,0.000667746411636,-0.444406658411026,0.038211546838284,-0.031407661736012,0.034193344414234,-0.322650611400604,-0.006557505112141,-0.016020325943828,-0.007398382294923) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.209190696477890,0.284562557935715,0.085267268121243,0.036683507263660,-0.039899878203869,-0.150089859962463,0.126870155334473,0.167619332671165,-0.170662730932236,0.113621041178703,-0.026289662346244,0.059618644416332,-0.271400064229965,-0.050561800599098,0.118945501744747,0.005284454207867) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.028682783246040,0.400834679603577,0.121744118630886,0.060232415795326,-0.074613682925701,-0.070645771920681,-0.051854956895113,-0.061983592808247,-0.024111453443766,0.024503970518708,-0.029080832377076,-0.070722274482250,-0.087992794811726,0.015342291444540,-0.123401306569576,0.039309985935688) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.064405992627144,0.178247109055519,0.269618153572083,0.012501172721386,-0.166405722498894,0.161102876067162,0.082571081817150,-0.013267623260617,0.188975900411606,-0.043172642588615,0.027757160365582,-0.007985581643879,-0.242892518639565,-0.008245331235230,-0.083981096744537,0.010938732884824) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.156647711992264,0.219930648803711,0.087853744626045,-0.031004611402750,0.026534812524915,0.217498049139977,-0.191764533519745,0.180637896060944,0.211790964007378,0.086583517491817,0.315610438585281,-0.159711286425591,0.057318828999996,-0.483829796314240,0.168615266680717,0.072974510490894) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.196852535009384,-0.121403276920319,-0.100441165268421,-0.160235092043877,-0.014503685757518,-0.467454999685287,-0.134776517748833,0.217040762305260,-0.066736064851284,0.123529061675072,-0.111952714622021,0.159696295857430,-0.084148585796356,0.024801608175039,-0.115390121936798,-0.066182516515255) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.105180457234383,0.163038939237595,0.064446426928043,0.037321522831917,0.041952390223742,0.028528457507491,-0.163694664835930,0.034269172698259,0.119898580014706,-0.143781512975693,-0.119264587759972,-0.068947002291679,-0.112403169274330,-0.024067185819149,0.072763167321682,-0.006624313537031) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.189197421073914,0.305986642837524,0.029662476852536,0.046052854508162,0.039113666862249,0.106824636459351,0.034989729523659,0.117608241736889,0.159378573298454,-0.476971715688705,-0.003920944407582,0.132498905062675,0.044609028846025,-0.173666492104530,0.043648965656757,0.070934876799583) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.118999250233173,0.193912595510483,0.087223604321480,-0.019757969304919,-0.007693942170590,-0.063968881964684,-0.040623992681503,0.046126749366522,0.099940687417984,-0.149846866726875,0.124171227216721,-0.141427174210548,-0.034783791750669,-0.095202244818211,-0.004613938275725,-0.002370533766225) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.010492152534425,-0.091575257480145,-0.067700318992138,-0.330316334962845) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_2x_Photo] mapping 2_4

vec4 hook()
{
vec4 res = vec4(0.070390574634075,-0.060840930789709,0.068584233522415,-0.000923145795241);
res += mat4(-0.054852038621902,-0.189306750893593,0.051322519779205,0.180046990513802,0.024013487622142,-0.097840651869774,-0.070116683840752,0.066016711294651,-0.057769801467657,0.014144924469292,0.100419014692307,-0.144157141447067,0.024027418345213,-0.055697705596685,-0.094155266880989,0.069076910614967) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.015651512891054,0.075945332646370,-0.048047788441181,-0.151621803641319,0.052668292075396,0.047850880771875,-0.105184733867645,-0.129455983638763,0.021290054544806,-0.050566319376230,0.134252309799194,-0.009106089361012,-0.090634420514107,-0.000388331536669,-0.197828158736229,0.168566897511482) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.213597923517227,0.003139449981973,0.023880856111646,-0.266345560550690,0.184251755475998,-0.029769146814942,-0.082657702267170,0.186634868383408,-0.017386704683304,-0.054381545633078,-0.172833800315857,0.025194071233273,-0.296784192323685,0.031713701784611,-0.194236949086189,0.131764397025108) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.033076621592045,-0.113362781703472,0.134781375527382,-0.113998018205166,-0.082829557359219,-0.100192606449127,0.050917673856020,-0.023284118622541,-0.047560967504978,0.103866048157215,-0.222375467419624,0.076799519360065,-0.011877821758389,-0.022734660655260,-0.205662891268730,-0.052369032055140) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.242888957262039,0.207743763923645,0.009960775263608,0.251458108425140,-0.072145983576775,0.111987464129925,0.043463878333569,-0.078193292021751,-0.182005986571312,0.266997486352921,-0.232521533966064,-0.250098437070847,-0.158424720168114,-0.113790027797222,-0.246739223599434,0.053702116012573) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.138800665736198,0.027127290144563,0.091018989682198,0.008479326032102,0.046684328466654,-0.005462574306875,0.015992987900972,0.082391269505024,-0.033686026930809,-0.026356501504779,-0.047670643776655,0.015547989867628,-0.154338359832764,-0.089891932904720,-0.093742191791534,0.114280723035336) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.021333495154977,0.087341226637363,0.095995821058750,-0.049241680651903,0.054845534265041,0.012584819458425,-0.065899774432182,-0.026751322671771,-0.059328500181437,-0.091866843402386,0.097629956901073,0.035011760890484,0.000125830338220,-0.036769267171621,-0.157479256391525,-0.013075128197670) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.058812551200390,0.013734220527112,0.030792223289609,0.139203175902367,-0.009112663567066,0.009121734648943,-0.001059947535396,0.154406905174255,0.030861061066389,0.127133280038834,-0.071342810988426,-0.094908528029919,-0.094865225255489,0.067933566868305,-0.159760221838951,0.069876834750175) * MODEL1_texOff(vec2(1,0));
res += mat4(0.129630908370018,0.094973050057888,0.013123255223036,-0.003856913885102,0.022367248311639,-0.068469941616058,0.051240552216768,0.018561732023954,-0.049563180655241,0.004616594407707,-0.021151354536414,0.052969910204411,0.010329794138670,-0.013440320268273,-0.106336660683155,0.095332860946655) * MODEL1_texOff(vec2(1,1));
res += mat4(0.025842331349850,-0.181568011641502,-0.105415247380733,0.229077324271202,0.200232222676277,-0.077361658215523,0.000399944023229,0.152598455548286,0.078159593045712,-0.033104281872511,0.119419835507870,0.164321973919868,-0.140655532479286,0.019618565216660,-0.024807374924421,0.008585553616285) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.018372999504209,0.073529675602913,-0.380882501602173,-0.183818116784096,0.134527280926704,-0.003938368987292,-0.079260215163231,-0.067422702908516,0.065257489681244,0.083785913884640,0.124594777822495,0.003458725521341,-0.119091652333736,0.025412993505597,0.004950797185302,-0.065701253712177) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.152850881218910,-0.021619930863380,-0.044110804796219,-0.007434866391122,0.185185268521309,0.066140219569206,-0.032088041305542,0.139926731586456,-0.097858421504498,0.178892418742180,-0.117178380489349,0.219389557838440,0.015229171141982,-0.003100678324699,-0.019188279286027,0.073233947157860) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.036950580775738,-0.762666404247284,0.036198806017637,-0.006937494035810,0.071205563843250,0.054304528981447,-0.150872349739075,-0.012473472394049,0.068301267921925,0.010052217170596,0.074272923171520,-0.011774735525250,-0.046255420893431,-0.106635771691799,0.321385115385056,-0.027697702869773) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.032654419541359,0.021426565945148,-0.001098339213058,-0.028188709169626,0.235204339027405,0.012001751922071,0.007490126416087,-0.054290689527988,0.127349719405174,0.168181672692299,0.031194612383842,-0.130079269409180,0.640713334083557,-0.118734709918499,-0.126004919409752,-0.122832439839840) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.115900456905365,0.085669182240963,0.034897644072771,-0.024868562817574,0.159049943089485,0.014339794404805,0.036027040332556,0.258554369211197,0.160192519426346,0.142429709434509,-0.036297995597124,-0.027736054733396,0.044734176248312,-0.058439649641514,-0.003992045763880,-0.082461774349213) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.132705003023148,-0.388332188129425,0.064332164824009,-0.133637458086014,0.149186939001083,0.046674642711878,-0.078381620347500,0.156839117407799,0.134233698248863,-0.056696914136410,0.153265252709389,-0.074469104409218,0.023953542113304,-0.007511845789850,0.074267096817493,-0.154335051774979) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.088441841304302,0.053364433348179,0.058146532624960,0.051353123039007,-0.074561834335327,0.007425182964653,0.000289540737867,-0.061599895358086,0.052217386662960,-0.013052223250270,0.165089294314384,-0.014866014011204,0.174030959606171,0.021955084055662,-0.008851163089275,-0.063200928270817) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.170574605464935,0.016363827511668,-0.010471154004335,0.079669162631035,0.109537310898304,-0.006770720239729,0.025594020262361,0.056800886988640,0.073665879666805,0.045008618384600,0.035895142704248,-0.020705910399556,0.017761247232556,-0.032067704945803,0.074933491647243,-0.215774014592171) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.056120377033949,-0.034791897982359,-0.120280139148235,0.217253044247627,0.119005553424358,0.118898145854473,0.099951475858688,-0.152905866503716,0.126165375113487,0.051711961627007,-0.080713510513306,-0.074441976845264,0.033350441604853,0.045038923621178,0.053405936807394,-0.042536787688732) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.141910657286644,-0.037672758102417,0.019811259582639,0.193161308765411,-0.229777052998543,0.039243724197149,-0.047545175999403,-0.002909940201789,0.104064062237740,0.106575831770897,-0.163152679800987,0.146272778511047,-0.129223719239235,-0.096423983573914,-0.023231901228428,0.074932418763638) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.130868956446648,-0.066119246184826,0.132686138153076,0.032231390476227,-0.115395881235600,-0.006414558272809,-0.133939072489738,-0.002686493797228,0.045430928468704,-0.022522320970893,0.052571896463633,-0.041456930339336,-0.082389310002327,0.081763200461864,0.043869473040104,-0.088034912943840) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.097877770662308,-0.158754035830498,0.064689069986343,-0.056487716734409,-0.107196822762489,0.215129733085632,-0.006977952551097,-0.015099662356079,-0.017436534166336,0.034896612167358,-0.071914330124855,-0.318034023046494,0.231140479445457,0.209491759538651,-0.081790030002594,-0.010448408313096) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.068059362471104,-0.072194091975689,-0.034116975963116,-0.019914474338293,-0.067382402718067,-0.001234091585502,0.006587860640138,-0.026158653199673,-0.018295945599675,-0.007370778359473,-0.021207178011537,0.075153857469559,0.032801348716021,-0.053947012871504,0.059600993990898,-0.183454573154449) * MODEL3_texOff(vec2(0,0));
res += mat4(0.008704449981451,0.019711479544640,0.065063253045082,0.062512323260307,0.141626358032227,0.039063088595867,-0.155740603804588,-0.108732163906097,-0.021930094808340,0.080390296876431,-0.345609724521637,-0.190923511981964,0.055389009416103,0.080978177487850,-0.063250228762627,-0.038831360638142) * MODEL3_texOff(vec2(0,1));
res += mat4(0.145730942487717,-0.406957566738129,0.141398429870605,-0.183756187558174,0.141342401504517,-0.037088796496391,0.073026783764362,0.078000865876675,-0.023115828633308,-0.011148867197335,-0.080041356384754,-0.000774322310463,0.156482592225075,0.017876621335745,0.087014876306057,0.200627908110619) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.108579717576504,-0.052235901355743,-0.025498256087303,-0.073444887995720,0.197159603238106,0.044172342866659,-0.040118813514709,-0.115636639297009,-0.044736463576555,0.042067576199770,0.038386326283216,0.150134429335594,0.099279329180717,-0.031083507463336,-0.077924355864525,-0.106421940028667) * MODEL3_texOff(vec2(1,0));
res += mat4(0.038155008107424,-0.034547779709101,-0.025944676250219,0.008922251872718,0.132211208343506,0.064475886523724,-0.050145562738180,0.108888566493988,-0.029157349839807,-0.087893255054951,0.041358713060617,-0.018580781295896,0.013860444538295,0.054459754377604,0.103957474231720,0.081830486655235) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.133108645677567,-0.099570870399475,-0.173367694020271,0.059302195906639,0.171936362981796,-0.046598728746176,0.159434869885445,-0.070674702525139,0.063815511763096,-0.005934752058238,-0.102555364370346,0.082983650267124,0.174972400069237,0.043904867023230,0.014577041380107,-0.131273895502090) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.041752278804779,-0.031473331153393,0.028016975149512,-0.052598543465137,0.148683577775955,0.016395866870880,0.028223467990756,0.005653917323798,0.006228654179722,0.034675706177950,0.053931243717670,0.017083862796426,0.163153335452080,0.094137199223042,-0.259776651859283,0.195823252201080) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.122315540909767,-0.001565607264638,0.046054225414991,-0.051569782197475,0.052540577948093,0.027563396841288,-0.053405459970236,0.194052636623383,0.022285550832748,-0.059157397598028,-0.008508802391589,0.015083177946508,0.070019617676735,0.081544034183025,-0.058332163840532,-0.143547549843788) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.302588403224945,-0.313303977251053,0.188586592674255,-0.048162803053856,0.185357227921486,0.127773582935333,0.142783224582672,-0.353127211332321,0.109138123691082,-0.018819792196155,-0.114452697336674,0.175552010536194,-0.043463885784149,0.438715904951096,0.106371879577637,-0.099603876471519) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.297136425971985,-0.012565040029585,-0.073715105652809,-0.168753460049629,0.116040036082268,0.134950652718544,0.125094681978226,0.249607577919960,0.180009439587593,0.158439099788666,0.009083813987672,0.073680236935616,-0.280741721391678,-0.111359663307667,-0.120906576514244,0.119139432907104) * MODEL4_texOff(vec2(0,0));
res += mat4(0.361009120941162,0.087875194847584,-0.061764676123857,-0.202331185340881,0.051884576678276,-0.006862971000373,-0.051024161279202,-0.010232158005238,0.179748877882957,0.014231635257602,0.055320609360933,-0.025217542424798,0.078385658562183,0.004689591471106,0.006559743080288,0.066555142402649) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.102491542696953,-0.146076843142509,0.087638199329376,-0.208046138286591,0.067060701549053,0.042668744921684,0.069641008973122,-0.051699712872505,0.046509437263012,-0.028553929179907,-0.024621441960335,-0.072295524179935,-0.029295688495040,-0.004265758208930,0.094486527144909,0.071459792554379) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.195208594202995,-0.025904998183250,-0.065916903316975,-0.049196556210518,-0.077178619801998,-0.090760968625546,0.050070878118277,-0.023229261860251,0.071014933288097,0.020028589293361,0.038860205560923,0.030523773282766,-0.005381623748690,-0.022150531411171,-0.021427255123854,-0.121101744472980) * MODEL4_texOff(vec2(1,0));
res += mat4(0.103964112699032,0.025098782032728,-0.005877333227545,0.007722361944616,0.087087176740170,0.020429410040379,-0.048693142831326,0.043704710900784,-0.085126362740993,-0.023990465328097,0.015240393579006,-0.047089014202356,-0.127675488591194,-0.008668412454426,-0.013687743805349,0.070611350238323) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.044396717101336,-0.100601524114609,0.056537203490734,0.005276023875922,0.100875124335289,-0.042897731065750,0.042793687433004,-0.112590186297894,-0.319815456867218,-0.016575368121266,0.056004066020250,0.115058332681656,-0.042146719992161,-0.105964913964272,0.025620281696320,0.039455927908421) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.184115096926689,-0.006922525353730,-0.140932783484459,0.004092180170119,0.042046200484037,0.049886986613274,0.033057961612940,-0.103962436318398,-0.260489404201508,0.019920613616705,0.084365144371986,0.020923687145114,-0.143483340740204,0.026762150228024,-0.107484064996243,0.001402279362082) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.189287930727005,0.023061083629727,-0.004173031076789,0.034170955419540,0.022830763831735,0.018660098314285,0.059625558555126,-0.115256518125534,-0.183603405952454,0.036852646619081,0.025785110890865,-0.028236592188478,-0.004652383271605,-0.029514789581299,0.051136057823896,0.017869604751468) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.099686011672020,0.051328260451555,-0.038780052214861,0.026918971911073,0.177099347114563,-0.023265894502401,0.124492451548576,-0.260336458683014,0.289217203855515,-0.119637362658978,-0.302470475435257,-0.116634137928486,-0.105585418641567,-0.143239274621010,0.199255868792534,-0.291606038808823) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.308210223913193,-0.135056748986244,-0.027373017743230,-0.062451358884573,0.044779319316149,0.054450973868370,0.002867989242077,-0.121834523975849,-0.383866697549820,-0.097135566174984,-0.093761801719666,-0.118747107684612,-0.010416440665722,-0.090752862393856,0.123771958053112,0.065764769911766) * MODEL5_texOff(vec2(0,0));
res += mat4(0.167165830731392,0.055072981864214,-0.168661475181580,0.007151138968766,0.062789440155029,0.014838221482933,0.123637214303017,-0.035355087369680,-0.162173315882683,0.061134941875935,-0.115368731319904,0.118977740406990,-0.025955639779568,-0.035440653562546,-0.034302461892366,0.073541268706322) * MODEL5_texOff(vec2(0,1));
res += mat4(0.088383115828037,-0.064518012106419,0.050612125545740,-0.044107452034950,0.058896616101265,-0.039056070148945,0.081127211451530,-0.206741586327553,0.210797309875488,-0.093959085643291,0.023032717406750,-0.069476462900639,0.009508790448308,-0.065830335021019,0.068504087626934,0.332435369491577) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.118350893259048,-0.052836515009403,0.049312110990286,0.258843213319778,0.015318858437240,-0.054693523794413,0.033913720399141,-0.172482833266258,-0.221940398216248,-0.072401084005833,-0.059647485613823,0.023223420605063,-0.079104468226433,0.029994403943419,0.002861650660634,0.361346334218979) * MODEL5_texOff(vec2(1,0));
res += mat4(0.166932597756386,-0.010482722893357,-0.090087354183197,0.027209326624870,0.044072587043047,-0.032325677573681,0.129269123077393,-0.088892653584480,-0.260277658700943,0.053167704492807,0.033104125410318,0.078741826117039,-0.078575998544693,0.017489042133093,0.039250046014786,0.139002352952957) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.210275128483772,-0.011952447704971,0.081274770200253,0.024264603853226,-0.120256774127483,-0.179744735360146,-0.026325771585107,-0.037083853036165,0.066577501595020,0.057391550391912,-0.000934044364840,-0.000243404560024,0.021260987967253,-0.035927135497332,0.058514166623354,-0.123460367321968) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.280919313430786,0.098720043897629,-0.177372619509697,0.237364277243614,-0.185762837529182,-0.013005193322897,-0.170871809124947,0.018999010324478,-0.040408287197351,-0.014491935260594,0.035200871527195,-0.062826983630657,-0.035753309726715,-0.001982643501833,0.047590818256140,-0.074801608920097) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.242103546857834,-0.012262655422091,-0.128262430429459,0.100217975676060,-0.006526226177812,0.036917570978403,-0.172182351350784,-0.108949959278107,-0.042374201118946,0.013168745674193,-0.121846556663513,0.112865820527077,0.008207556791604,-0.009456773288548,0.038939382880926,0.016527062281966) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.102551758289337,0.107997655868530,-0.008721568621695,-0.034855842590332,-0.108737334609032,-0.235919177532196,0.211953014135361,0.090152874588966,0.063065953552723,0.004107750952244,0.006931308191270,0.132337138056755,0.028591662645340,-0.131381705403328,0.125148460268974,-0.229524761438370) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.082617722451687,0.325218677520752,-0.078588649630547,0.062494121491909,-0.043866235762835,-0.555516064167023,-0.181852683424950,-0.179209694266319,-0.274763584136963,-0.106615953147411,0.018296381458640,-0.118595845997334,-0.033600643277168,0.060875035822392,0.120221056044102,-0.165044352412224) * MODEL6_texOff(vec2(0,0));
res += mat4(0.093552485108376,0.020765116438270,-0.002895549172536,-0.172993004322052,-0.039756968617439,0.213586941361427,-0.119868963956833,-0.053623620420694,-0.122113421559334,0.083148039877415,-0.172958612442017,0.265722334384918,0.004656713455915,-0.047550179064274,-0.074485614895821,-0.074191130697727) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.142815202474594,-0.018045781180263,-0.035782113671303,0.117830842733383,0.040872607380152,-0.074872627854347,0.164053097367287,-0.111269585788250,-0.103614598512650,-0.264455258846283,-0.005804106593132,0.176490932703018,0.047764390707016,-0.016309281811118,0.023988682776690,-0.432424902915955) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.180621087551117,0.106006368994713,-0.035962108522654,-0.081078484654427,0.023116018623114,-0.169573351740837,-0.127556160092354,-0.032877534627914,0.084596827626228,0.205515250563622,0.070263229310513,-0.614472806453705,-0.519136786460876,0.018184944987297,0.238913908600807,0.115197777748108) * MODEL6_texOff(vec2(1,0));
res += mat4(0.032851070165634,0.004457612056285,-0.127362489700317,-0.070859320461750,-0.057288393378258,-0.035108629614115,0.027190811932087,0.141050174832344,0.034937545657158,0.104499153792858,0.036377411335707,0.149657562375069,-0.119251161813736,-0.045784424990416,-0.093282818794250,-0.031184569001198) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.046558350324631,-0.194131210446358,0.104825437068939,0.099285274744034) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_2x_Photo] mapping 2_5

vec4 hook()
{
vec4 res = vec4(0.193924948573112,0.024331143125892,-0.152456372976303,-0.048794843256474);
res += mat4(0.123828232288361,-0.042761545628309,0.046386551111937,0.008992006070912,0.106344468891621,-0.026125712320209,0.036072738468647,0.112144537270069,0.208278000354767,-0.092601120471954,0.056416176259518,0.070344537496567,0.094448782503605,-0.010134413838387,0.019901407882571,0.054254736751318) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.032751135528088,0.034033857285976,0.087825991213322,-0.021222567185760,0.036017753183842,0.303318411111832,0.033044267445803,0.096441976726055,-0.034622870385647,-0.111182063817978,-0.013366539962590,-0.037328060716391,0.155262038111687,0.013839694671333,0.054593231528997,-0.066960796713829) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.153015270829201,-0.111620821058750,0.069294974207878,0.200059205293655,0.033833187073469,0.117528125643730,-0.050215493887663,-0.061904296278954,0.316095113754272,0.086188457906246,0.086555585265160,0.134862750768661,0.123677261173725,0.046502415090799,0.037693649530411,0.195093065500259) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.032071541994810,-0.071858301758766,-0.150351673364639,-0.074064411222935,-0.182890415191650,0.078509129583836,0.010840603150427,-0.069392085075378,0.167407080531120,-0.041271984577179,0.107087664306164,-0.033269900828600,0.043282061815262,-0.027305502444506,0.010147943161428,0.107555367052555) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.081195898354053,-0.117607221007347,-0.286189496517181,-0.093628861010075,-0.031176324933767,-0.321013778448105,-0.135114565491676,0.181910589337349,-0.255940943956375,-0.184575840830803,0.093025639653206,0.007093613967299,0.128177121281624,0.012562163174152,0.068249754607677,-0.081110060214996) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.100419633090496,-0.091718651354313,0.144442260265350,0.135586798191071,0.000150953157572,0.256652623414993,0.079576738178730,0.050408165901899,0.121374666690826,0.101312674582005,0.052626103162766,0.083931595087051,0.261183589696884,0.032417073845863,-0.031110277399421,0.067453093826771) * MODEL1_texOff(vec2(0,1));
res += mat4(0.013516468927264,-0.019070198759437,0.025833010673523,-0.109818764030933,0.012230015359819,-0.055762771517038,-0.070595599710941,0.036381114274263,0.022706229239702,-0.026465218514204,0.053739938884974,-0.139100566506386,0.119326777756214,-0.014574962668121,-0.110489360988140,0.089376524090767) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.209272950887680,-0.059732887893915,-0.055671539157629,-0.027759922668338,0.142007157206535,-0.144708231091499,-0.042093250900507,-0.158330902457237,-0.208579972386360,0.027552379295230,0.069936208426952,0.030896756798029,0.099799841642380,0.002298173494637,-0.052729390561581,0.123768381774426) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.152178391814232,-0.018264042213559,0.162127986550331,-0.166117042303085,-0.035402912646532,0.091786727309227,-0.064192473888397,-0.006265532225370,0.123699888586998,0.011662131175399,0.039699967950583,0.275359541177750,0.170257866382599,-0.007158440537751,-0.049541369080544,0.122789524495602) * MODEL1_texOff(vec2(1,1));
res += mat4(0.031051794067025,-0.035113699734211,-0.085769109427929,-0.106586769223213,0.049000199884176,0.046809922903776,-0.229937180876732,0.072354279458523,-0.005860133096576,-0.042848557233810,0.115374736487865,-0.247354552149773,-0.023514593020082,-0.012691323645413,-0.004483890719712,-0.067561320960522) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.053764119744301,0.158434599637985,-0.000303186156088,0.010345933027565,-0.021503681316972,0.073835812509060,-0.274586051702499,0.038759298622608,-0.203525349497795,-0.048064105212688,0.077202402055264,-0.104673750698566,0.084802009165287,0.016566211357713,-0.084877133369446,0.292998731136322) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.012665200047195,0.046727828681469,-0.046755179762840,0.044019106775522,0.092475116252899,0.038732547312975,-0.115689158439636,-0.035985186696053,-0.228832587599754,-0.005104586016387,0.118536442518234,-0.226526468992233,-0.020445240661502,0.015008285641670,-0.096444688737392,0.057578030973673) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.064889982342720,-0.027189655229449,-0.000133406036184,0.025082316249609,0.085456110537052,0.064067281782627,-0.243627667427063,0.034127850085497,-0.003866096492857,-0.094237007200718,-0.023021919652820,-0.134919688105583,0.158321827650070,-0.020434431731701,-0.029753142967820,-0.092298001050949) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.005901970434934,0.336708366870880,-0.053617902100086,-0.069003440439701,0.132296934723854,0.106134966015816,-0.318345099687576,0.095758363604546,-0.178326323628426,-0.099626794457436,0.021676238626242,-0.033424671739340,-0.128112792968750,-0.116421788930893,-0.011492879129946,-0.127836540341377) * MODEL2_texOff(vec2(0,0));
res += mat4(0.074663043022156,-0.115351110696793,0.128376066684723,-0.083049841225147,0.161984935402870,-0.007333137560636,-0.163396164774895,0.110465943813324,-0.144245237112045,-0.032350745052099,0.035088095813990,-0.076068051159382,0.077432505786419,-0.023592732846737,0.008806015364826,0.380188375711441) * MODEL2_texOff(vec2(0,1));
res += mat4(0.027935136109591,-0.035914663225412,0.014230018481612,-0.020063249394298,-0.002873990684748,0.022757640108466,-0.037869013845921,-0.048899997025728,-0.140771269798279,-0.066454768180847,-0.017057888209820,-0.090166650712490,0.002776948502287,-0.019842749461532,-0.019606275483966,0.087389096617699) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.233971968293190,0.170733764767647,-0.078140340745449,0.114268206059933,-0.049790747463703,-0.016622092574835,-0.064416058361530,0.067393526434898,-0.085963964462280,-0.080536976456642,-0.023489331826568,-0.086026079952717,0.092652902007103,-0.025685783475637,-0.005463723558933,-0.126838415861130) * MODEL2_texOff(vec2(1,0));
res += mat4(0.057861041277647,-0.093146160244942,0.082052052021027,0.165359795093536,0.083677932620049,-0.026826482266188,-0.150745019316673,0.131487220525742,-0.081586144864559,-0.093664497137070,-0.107811190187931,-0.215239867568016,0.082894928753376,-0.027732998132706,-0.004439471755177,-0.034396290779114) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.020534979179502,0.063714109361172,-0.011665324680507,-0.062496352940798,-0.084947653114796,0.024797530844808,-0.074024580419064,-0.002620924962685,0.169219747185707,-0.005007340107113,-0.019173474982381,0.106698870658875,-0.023603117093444,0.051490809768438,-0.009497589431703,0.012463442981243) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.122535362839699,0.084376432001591,0.068742133677006,0.078204773366451,0.012018787674606,-0.010312072932720,0.017182106152177,-0.240661740303040,0.158000037074089,0.024836037307978,-0.006104363594204,0.084373421967030,-0.050384033471346,0.025273365899920,0.073179513216019,-0.062668405473232) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.026517378166318,-0.005352308042347,0.048829223960638,-0.194146946072578,0.043289680033922,-0.028493393212557,-0.065788090229034,-0.150801792740822,0.052017863839865,0.020732548087835,0.013550377450883,0.170740097761154,-0.017619647085667,-0.077195666730404,-0.008936283178627,-0.118650563061237) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.050187457352877,0.024929776787758,0.079066716134548,0.012893665581942,-0.029746813699603,0.026463752612472,-0.073969669640064,0.159838244318962,0.030842358246446,-0.011662204749882,-0.115523591637611,0.165513396263123,-0.130508616566658,0.053209379315376,-0.100695274770260,0.147625237703323) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.197083756327629,0.061991564929485,-0.066601864993572,0.013252926059067,0.093973517417908,0.022838119417429,0.009821257553995,-0.179798707365990,-0.030905120074749,-0.008468901738524,0.015482746064663,0.106457702815533,-0.007288210093975,0.039855789393187,-0.112580113112926,-0.043382912874222) * MODEL3_texOff(vec2(0,0));
res += mat4(0.093405686318874,0.072790287435055,0.079357750713825,-0.145349636673927,-0.033133685588837,-0.059808608144522,-0.058586999773979,-0.103376761078835,0.022147016599774,0.005852158647031,0.075690962374210,0.200772851705551,0.175672754645348,-0.141982302069664,0.085983216762543,-0.157151356339455) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.078748196363449,-0.007026521023363,-0.007967118173838,-0.058392770588398,0.103462800383568,0.015922863036394,0.023235872387886,-0.008184286765754,0.155815407633781,-0.001765207503922,-0.037458699196577,0.092065073549747,-0.054884966462851,0.076625153422356,-0.169986099004745,-0.102123834192753) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.090551428496838,-0.012971568852663,0.090480327606201,-0.085010796785355,0.094373010098934,0.034253075718880,0.611374020576477,0.128218144178391,0.008136459626257,0.011350954882801,-0.133734658360481,0.139709159731865,-0.071841165423393,0.095816977322102,-0.234912350773811,0.065180487930775) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.002258596010506,0.034028023481369,0.031683757901192,-0.035041835159063,-0.051147352904081,-0.037791080772877,-0.218806788325310,0.011711131781340,-0.009046948514879,0.020705942064524,0.091062597930431,0.368571579456329,-0.111131541430950,-0.067610964179039,-0.062441602349281,-0.062365122139454) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.078163221478462,-0.040420953184366,-0.054865900427103,-0.042253661900759,0.086000256240368,0.015979288145900,-0.056686114519835,0.042319688946009,0.072750389575958,-0.080506548285484,0.064547121524811,0.005312247201800,-0.228798434138298,0.027649898082018,-0.088473640382290,0.034751810133457) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.025430660694838,0.008203800767660,0.010346907190979,-0.024949321523309,-0.245555907487869,0.053280506283045,0.048186719417572,-0.223905950784683,0.050671946257353,-0.092539727687836,0.016576675698161,0.016434853896499,-0.093874201178551,0.214806839823723,0.062131036072969,-0.078978218138218) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.059581831097603,0.006397242657840,0.010920470580459,-0.076837092638016,0.131395012140274,0.085283778607845,-0.109047003090382,-0.063665762543678,0.044636730104685,0.028570663183928,-0.049077797681093,0.052068550139666,-0.028767827898264,0.004066845402122,0.034743126481771,-0.005860317964107) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.084930740296841,-0.073392212390900,-0.126845940947533,-0.060002878308296,-0.195653498172760,0.045114275068045,0.080876737833023,0.026463085785508,0.151374772191048,-0.202530160546303,0.142025217413902,0.010961806401610,-0.121227182447910,0.025216165930033,-0.086493484675884,0.370247066020966) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.145006939768791,0.024776326492429,-0.230975702404976,-0.170575708150864,-0.250827044248581,0.029615471139550,-0.099957853555679,-0.094212286174297,-0.164113909006119,0.798125803470612,0.067319802939892,-0.080576606094837,0.040128942579031,-0.283894449472427,-0.435080498456955,-0.017757309600711) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.205452501773834,0.018057169392705,-0.220324337482452,0.068113259971142,-0.148293793201447,-0.024881104007363,-0.147289991378784,0.144311919808388,-0.054699145257473,-0.048289861530066,0.047047834843397,0.067213557660580,-0.099237188696861,0.053793199360371,0.003109235316515,-0.207801118493080) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.027247214689851,-0.041157770901918,-0.221105426549911,0.154432699084282,-0.058210019022226,-0.012861183844507,-0.134418919682503,-0.020711336284876,0.021803069859743,0.014618905261159,-0.074201487004757,0.055473912507296,0.041534420102835,0.037197314202785,-0.031378336250782,-0.020817877724767) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.033407170325518,0.022361276671290,-0.289266467094421,-0.063501626253128,-0.168217167258263,-0.079788312315941,-0.107684388756752,-0.116397328674793,-0.054207433015108,-0.037006180733442,-0.088345788419247,-0.013950805179775,-0.032996520400047,-0.026327082887292,0.262920558452606,0.187381118535995) * MODEL4_texOff(vec2(1,0));
res += mat4(0.025497885420918,0.032129652798176,-0.221787646412849,0.040021318942308,-0.145392015576363,-0.021683191880584,-0.021298648789525,-0.203785032033920,0.059706788510084,-0.027243772521615,-0.010955503210425,0.050825167447329,-0.072773031890392,0.043540813028812,0.066997155547142,0.046791631728411) * MODEL4_texOff(vec2(1,1));
res += mat4(0.006522191222757,0.033885028213263,-0.031396456062794,-0.062548451125622,-0.249981626868248,-0.030341256409883,-0.041450463235378,-0.176364853978157,0.059534706175327,-0.004877684172243,0.060987807810307,0.157187700271606,0.092169888317585,-0.025200145319104,-0.002836478175595,-0.003330124076456) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.198808729648590,-0.038253128528595,-0.048964325338602,0.102436698973179,-0.293179869651794,-0.006071282085031,0.056893687695265,-0.351830661296844,-0.029641140252352,-0.044170096516609,0.061156734824181,0.047470342367887,-0.087319642305374,0.006871345452964,0.018342146649957,-0.150678634643555) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.060072079300880,-0.011415666900575,-0.100717991590500,0.142039284110069,-0.146260291337967,0.005775552708656,0.078953780233860,-0.212417617440224,0.113652780652046,0.020461028441787,0.078322693705559,0.018214683979750,0.113479040563107,0.077410764992237,-0.017894832417369,-0.217144444584846) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.031898580491543,0.015186382457614,-0.108427807688713,0.080873370170593,-0.260045856237411,-0.026829302310944,-0.065233580768108,-0.163786992430687,0.119994819164276,-0.049548815935850,0.077636286616325,0.079044118523598,-0.050582550466061,0.024110253900290,0.112420946359634,0.116908505558968) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.090206667780876,0.035117641091347,-0.138522714376450,0.008478829637170,-0.559058725833893,-0.019992148503661,0.015528751537204,-0.211889147758484,0.172425404191017,-0.097415193915367,0.118808984756470,0.247183457016945,0.012449862435460,0.053925354033709,-0.089347310364246,0.055083096027374) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.067681670188904,-0.062102206051350,-0.220581710338593,-0.138660952448845,-0.114326283335686,-0.002762198215351,0.084035985171795,-0.318067014217377,0.081165783107281,0.016184320673347,0.120428338646889,-0.097673729062080,0.035085447132587,0.097276337444782,0.012034854851663,-0.060369655489922) * MODEL5_texOff(vec2(0,1));
res += mat4(0.038310933858156,-0.030190445482731,-0.066702514886856,0.038638688623905,-0.428317874670029,-0.014861186966300,0.024404108524323,-0.227326080203056,-0.128180921077728,-0.031141793355346,0.008985577151179,-0.113445445895195,-0.029486980289221,0.012017334811389,0.126318037509918,0.087127193808556) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.002410855842754,-0.017583584412932,-0.176778823137283,-0.023753941059113,-0.494836807250977,-0.009943176992238,0.000425206875661,-0.189630150794983,-0.036294467747211,-0.080254182219505,0.163553610444069,0.068973988294601,-0.105596333742142,0.025605721399188,0.122035242617130,0.191300839185715) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.056043781340122,-0.015354140661657,-0.177732586860657,0.161180481314659,-0.320751905441284,-0.003267912194133,0.017882902175188,-0.301932692527771,-0.035177309066057,0.012045972049236,0.072269655764103,-0.127958998084068,0.063488133251667,0.017225459218025,0.051675744354725,-0.072792783379555) * MODEL5_texOff(vec2(1,1));
res += mat4(0.032295029610395,0.055194113403559,0.073945842683315,-0.058636225759983,0.068695276975632,-0.009035109542310,-0.002757662907243,-0.021189019083977,-0.073796190321445,0.042043309658766,0.044104602187872,-0.046916861087084,-0.022642675787210,-0.043273165822029,0.023768579587340,-0.030002716928720) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.013310924172401,0.073376141488552,0.168416589498520,-0.071119673550129,0.003524978645146,-0.035322010517120,0.106818065047264,0.098399028182030,0.007728707045317,0.199750810861588,-0.065043553709984,0.057779744267464,0.039155162870884,-0.088572703301907,0.043100859969854,0.039834827184677) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.088752508163452,0.006055749021471,0.076976433396339,-0.121923491358757,0.067564927041531,0.034318000078201,-0.053051028400660,0.200665965676308,0.003636763431132,-0.010043792426586,-0.017851864919066,-0.011171512305737,0.015288325957954,0.015786252915859,-0.006627297960222,-0.008116527460515) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.000434213347035,0.053336132317781,0.185503512620926,0.028514873236418,0.102708049118519,-0.076315574347973,-0.017647990956903,-0.013364449143410,-0.004172820597887,-0.046404846012592,-0.045470330864191,0.083667494356632,-0.058951195329428,-0.017216047272086,0.012659350410104,-0.059345379471779) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.054147135466337,0.084789857268333,0.119849570095539,0.031653366982937,0.110798560082912,-0.091495566070080,-0.007793955039233,0.004811014048755,0.196477293968201,-0.515443146228790,0.035619713366032,0.232170209288597,-0.290962755680084,0.055085573345423,-0.071780063211918,0.111395336687565) * MODEL6_texOff(vec2(0,0));
res += mat4(0.141915142536163,-0.006011590827256,0.023273177444935,-0.048397932201624,-0.092018350958824,0.141237184405327,-0.024095125496387,-0.067967981100082,-0.002144278958440,0.078886531293392,0.013151720166206,-0.247246608138084,0.030083477497101,0.026450356468558,0.065496198832989,-0.064159400761127) * MODEL6_texOff(vec2(0,1));
res += mat4(0.131227105855942,0.029547160491347,0.214323431253433,-0.049852911382914,-0.014676497317851,-0.028638007119298,0.234372034668922,0.029104957357049,0.052946794778109,0.026713525876403,0.203054711222649,0.034737635403872,0.019137732684612,-0.020964171737432,-0.275398910045624,-0.029422482475638) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.096185959875584,0.036158092319965,0.004424488171935,-0.018901906907558,-0.009013668633997,-0.023337300866842,0.054005868732929,-0.036902643740177,-0.521617233753204,0.294703096151352,0.274664938449860,0.148197248578072,-0.261377453804016,-0.008875178173184,-0.421951472759247,0.148402079939842) * MODEL6_texOff(vec2(1,0));
res += mat4(0.115964770317078,-0.014699038118124,0.002924946369603,-0.071275822818279,-0.116396874189377,0.077950038015842,-0.185075283050537,0.064981989562511,-0.303741753101349,0.041222482919693,0.078777216374874,0.058618500828743,-0.133859872817993,0.018234511837363,0.004401512909681,-0.057107940316200) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.063393592834473,0.951885640621185,-0.039015024900436,-0.088680684566498) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_2x_Photo] mapping 2_6

vec4 hook()
{
vec4 res = vec4(0.114482559263706,-0.467742204666138,-0.001646604039706,0.088745318353176);
res += mat4(0.070439428091049,-0.020061617717147,-0.069296948611736,0.096799440681934,-0.068591058254242,0.050762351602316,-0.085186339914799,0.083032026886940,-0.129641860723495,-0.080485686659813,0.007661100476980,0.144406169652939,0.028331667184830,-0.011769047938287,-0.084524571895599,-0.072025679051876) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.054346177726984,0.053774360567331,0.051260758191347,0.057671926915646,-0.124408289790154,-0.031167212873697,0.009882169775665,0.053327362984419,0.080028019845486,-0.079033240675926,-0.099789887666702,0.334304064512253,0.176667913794518,-0.014053901657462,-0.049107145518064,-0.273013710975647) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.251197785139084,-0.060492403805256,0.008383899927139,-0.083043582737446,-0.012104081921279,-0.001487056026235,-0.073142327368259,0.115789882838726,-0.143314361572266,0.011073846369982,0.048130493611097,0.108633525669575,-0.177691027522087,-0.124340422451496,-0.107191212475300,-0.151402696967125) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.004623145330697,-0.070420756936073,-0.024262854829431,0.027528088539839,0.032294031232595,-0.124562300741673,0.197519272565842,-0.217869013547897,-0.015473816543818,-0.001806089072488,0.063652999699116,-0.270628660917282,0.113238632678986,-0.055446200072765,-0.088442437350750,-0.186121806502342) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.007406045682728,-0.002846217015758,-0.128803744912148,-0.013742024078965,0.237491995096207,-0.031645201146603,-0.168248191475868,-0.156888052821159,-0.122088961303234,0.052706535905600,0.007578526157886,-0.017569549381733,0.076124645769596,0.030696285888553,-0.122425705194473,-0.327327519655228) * MODEL1_texOff(vec2(0,0));
res += mat4(0.189512938261032,-0.051073804497719,0.188118517398834,0.020593611523509,0.096880950033665,-0.044428095221519,0.256788015365601,-0.321963220834732,0.024689266458154,-0.011524349451065,-0.001511125941761,0.053405873477459,0.050685707479715,-0.259634912014008,0.038980834186077,-0.178190395236015) * MODEL1_texOff(vec2(0,1));
res += mat4(0.028013745322824,-0.025407610461116,-0.115527227520943,0.033984292298555,0.016118085011840,0.001223789877258,-0.081332780420780,0.169398665428162,-0.058993190526962,0.037591349333525,0.002117349533364,-0.030820721760392,0.053915280848742,0.030571291223168,0.036537118256092,-0.160001814365387) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.049389190971851,-0.002689022105187,-0.145272448658943,0.086371630430222,-0.031224714592099,0.006416507530957,-0.035480100661516,-0.057529553771019,0.122624166309834,-0.007244536187500,0.137693241238594,-0.259158790111542,0.050594959408045,0.059018462896347,0.058718126267195,-0.410944789648056) * MODEL1_texOff(vec2(1,0));
res += mat4(0.071402385830879,-0.077680401504040,0.031771816313267,0.201002717018127,-0.007080708630383,-0.011310460045934,-0.018687715753913,0.132553324103355,0.080295972526073,-0.123834505677223,0.057537704706192,0.019035823643208,0.050558317452669,-0.136683508753777,0.070012725889683,-0.307880312204361) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.037067092955112,-0.096267357468605,-0.120898522436619,0.034397207200527,0.144328534603119,-0.031608767807484,0.062141291797161,-0.027257867157459,0.093693956732750,0.052809026092291,0.018317881971598,0.165423184633255,-0.075063228607178,0.058758724480867,0.032308034598827,-0.116972193121910) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.051769435405731,0.010591208003461,0.099604286253452,0.073023021221161,-0.190457105636597,0.099736727774143,0.206504151225090,-0.023446619510651,0.043974671512842,0.056958399713039,-0.095962077379227,0.272800683975220,0.232151001691818,0.067471273243427,0.191043779253960,0.019264593720436) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.032701890915632,-0.004413381684572,0.030172217637300,0.069981142878532,0.086649909615517,0.035101752728224,0.066887088119984,-0.115153416991234,-0.125631913542747,-0.108864128589630,0.094992086291313,0.203309953212738,-0.063494451344013,0.002923579188064,-0.017639255151153,-0.030690519139171) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.050362750887871,-0.123081348836422,-0.237264990806580,-0.022209390997887,0.116472929716110,-0.090418286621571,0.088497012853622,-0.080231644213200,0.068945296108723,-0.016049353405833,0.018741190433502,0.028849467635155,-0.022930668666959,0.013707592152059,-0.004165666177869,-0.058638818562031) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.028131974861026,0.101120114326477,-0.018073966726661,-0.096409641206264,0.212209105491638,0.054319631308317,-0.124894686043262,-0.155283927917480,0.028699826449156,0.004207933787256,-0.118220709264278,0.104006402194500,-0.108279891312122,0.069535620510578,0.526647090911865,-0.055852677673101) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.041013009846210,-0.029088137671351,0.034236062318087,0.060425341129303,0.037505958229303,0.167377278208733,0.097631767392159,-0.026226304471493,0.054736990481615,-0.076674252748489,0.171696528792381,0.190650761127472,0.057953570038080,-0.004350698553026,0.020564455538988,0.047646384686232) * MODEL2_texOff(vec2(0,1));
res += mat4(0.061743717640638,-0.078218191862106,-0.030783358961344,0.044141151010990,-0.008394583128393,-0.062046192586422,0.045383200049400,0.117093965411186,0.077574446797371,-0.006887518335134,0.018092278391123,0.103629581630230,0.028088271617889,0.007246934808791,-0.012912014499307,-0.086038485169411) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.025146499276161,-0.074175558984280,-0.020206980407238,-0.048268493264914,0.133307620882988,0.057955253869295,-0.060836311429739,-0.225283548235893,0.143759250640869,-0.012709755450487,-0.028838070109487,0.047665994614363,0.037871692329645,0.014651688747108,-0.008310168050230,0.195050820708275) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.006712364964187,0.007927364669740,-0.054549526423216,0.055612701922655,0.004481909796596,-0.007272107992321,0.008140285499394,0.038306929171085,0.039361651986837,-0.122683338820934,0.116961553692818,0.015836058184505,-0.006329103372991,-0.000960896257311,-0.133446320891380,0.048832491040230) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.055420681834221,0.000507578602992,-0.173353374004364,-0.116089046001434,0.028106119483709,0.059242051094770,0.034201443195343,0.007699540350586,0.003151618409902,0.057983953505754,-0.012632639147341,0.041034370660782,0.082730673253536,0.046291455626488,0.095984280109406,-0.121732920408249) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.014367631636560,-0.018731284886599,-0.100709006190300,0.042960222810507,-0.243413522839546,0.099974073469639,0.130131229758263,0.225364699959755,-0.229143515229225,0.074840120971203,0.001420968212187,0.127478346228600,-0.048196945339441,-0.130119785666466,0.035087294876575,-0.024314062669873) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.227841883897781,0.034246135503054,-0.029692854732275,0.061959091573954,-0.050257362425327,0.454189002513885,-0.069226384162903,-0.032802656292915,-0.026347883045673,-0.033734697848558,-0.061437830328941,0.100436858832836,-0.019570313394070,-0.231727838516235,0.132773473858833,0.076802827417850) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.066037185490131,-0.027002809569240,-0.196822613477707,0.145753860473633,0.025117499753833,0.055251061916351,-0.001116683590226,0.082994654774666,0.104296065866947,0.041426602751017,0.078328303992748,-0.276193082332611,-0.120628148317337,0.026739707216620,0.181205153465271,0.035582564771175) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.021950533613563,0.098618425428867,0.060967270284891,0.253123253583908,0.089430995285511,0.093136459589005,0.031563729047775,0.002227243967354,0.130592107772827,0.087329961359501,0.018243273720145,-0.143556982278824,-0.044835861772299,-0.270476430654526,0.125292316079140,0.188122138381004) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.004005184397101,-0.058355014771223,-0.054218150675297,0.046686157584190,0.043066382408142,1.050095081329346,-0.058158382773399,0.050798393785954,-0.284527331590652,0.133561059832573,0.059178356081247,-0.268415302038193,-0.120242483913898,-0.082217127084732,-0.071995377540588,0.031437788158655) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.106473602354527,0.003969436977059,-0.002136107999831,0.136853158473969,-0.040442924946547,-0.007299441844225,0.090464361011982,-0.106249988079071,0.080440253019333,0.042244404554367,0.086051411926746,-0.225672483444214,-0.094793654978275,-0.014969156123698,0.023936577141285,-0.001009343541227) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.109494969248772,-0.006932109594345,-0.006950208451599,0.046788595616817,-0.013711269013584,0.136199355125427,0.058434009552002,-0.058786690235138,0.082591861486435,0.015971118584275,0.057182300835848,-0.247574880719185,-0.070643715560436,-0.051084235310555,0.089169204235077,0.139226064085960) * MODEL3_texOff(vec2(1,0));
res += mat4(0.036676738411188,0.073116779327393,0.088093586266041,-0.003990191500634,-0.026863191276789,0.132529184222221,0.095745578408241,-0.016590798273683,0.043564319610596,0.016975877806544,0.011648474261165,-0.249519392848015,-0.054876040667295,-0.067174531519413,0.022658305242658,-0.082834780216217) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.090564936399460,-0.029792662709951,-0.040088117122650,0.029077650979161,-0.012938308529556,0.021517151966691,0.023564888164401,0.043285936117172,-0.166402876377106,-0.046621162444353,-0.217846944928169,0.042567241936922,-0.162018835544586,0.055863078683615,-0.170958966016769,0.047363422811031) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.120632968842983,-0.013564781285822,0.034743484109640,0.142179995775223,-0.037869106978178,0.167138397693634,-0.133830800652504,-0.058547653257847,-0.035398513078690,0.297313481569290,0.140636548399925,0.024194158613682,-0.430801033973694,0.062553033232689,0.103007748723030,0.093055441975594) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.098026596009731,-0.139499649405479,0.156152114272118,-0.144800931215286,-0.099531367421150,0.240893706679344,-0.073384344577789,-0.097462505102158,-0.000462045776658,-0.062332503497601,-0.027240864932537,0.006579692941159,0.069488093256950,-0.069844402372837,0.102964587509632,-0.106075130403042) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.073802568018436,-0.051695581525564,-0.306843221187592,0.174782171845436,0.005831770598888,0.051379609853029,0.090716198086739,-0.154670342803001,-0.271457821130753,-0.025765251368284,-0.150198101997375,0.120016932487488,-0.173466444015503,-0.048601403832436,-0.122070156037807,-0.071486614644527) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.076761133968830,-0.194331616163254,0.284359514713287,-0.130436807870865,-0.034552082419395,0.003065951168537,0.115384340286255,-0.244062557816505,-0.091612800955772,0.327630162239075,0.171313419938087,-0.010835991241038,0.067205004394054,-0.114860147237778,-0.002309031784534,0.204260617494583) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.137082204222679,0.000802040274721,0.099769301712513,-0.108404844999313,0.325580298900604,0.182106509804726,0.180235356092453,-0.151474252343178,-0.102865844964981,-0.074757419526577,-0.023393619805574,0.133853197097778,-0.044169649481773,0.100405156612396,0.033108741044998,-0.037015367299318) * MODEL4_texOff(vec2(0,1));
res += mat4(0.068262144923210,-0.064089782536030,0.008928329683840,-0.107318125665188,0.052281916141510,0.025901187211275,0.037839956581593,-0.128974944353104,-0.012037531472743,0.018325824290514,0.044454574584961,-0.067816711962223,0.033600199967623,-0.066815510392189,0.098542101681232,-0.184813261032104) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.011480193585157,0.039663232862949,-0.042410936206579,-0.072711870074272,0.056832659989595,0.160581871867180,0.041965059936047,0.059051215648651,0.107317171990871,0.416514724493027,0.166076242923737,-0.061211582273245,0.048906430602074,-0.101158589124680,0.072686769068241,-0.008845641277730) * MODEL4_texOff(vec2(1,0));
res += mat4(0.000680290453602,-0.009104335680604,-0.033836901187897,-0.098191015422344,0.100971028208733,0.138015940785408,0.054598160088062,-0.005879170261323,0.062413431704044,0.056459151208401,0.088847711682320,-0.008493923582137,-0.080682434141636,-0.265581130981445,0.012104659341276,-0.076561972498894) * MODEL4_texOff(vec2(1,1));
res += mat4(0.051118854433298,0.009722810238600,-0.067093886435032,0.025559766218066,-0.017170203849673,0.057320345193148,-0.034016970545053,0.101711317896843,0.075624540448189,-0.018438212573528,0.031736284494400,0.013963483273983,0.008222205564380,-0.013645739294589,-0.128262579441071,-0.055830441415310) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.231898218393326,0.136594071984291,0.003108521690592,-0.151843279600143,-0.116145178675652,-0.027965914458036,0.039568148553371,0.127301916480064,-0.050583191215992,0.193690627813339,-0.177423372864723,-0.043864946812391,0.019856929779053,-0.025969104841352,0.047580614686012,0.207733646035194) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.007151417899877,-0.039761751890182,-0.031140157952905,0.036467976868153,0.029745588079095,-0.036180920898914,0.089766174554825,0.148389592766762,-0.026926234364510,0.176991134881973,0.049675770103931,0.043092083185911,0.121533095836639,-0.037850424647331,0.163513019680977,0.077879846096039) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.119257070124149,0.012913357466459,0.058003701269627,-0.044916346669197,-0.007366057485342,0.004287251271307,-0.027133585885167,0.049453541636467,-0.200667992234230,-0.060736328363419,0.322953134775162,-0.001701917033643,0.054807975888252,-0.059764042496681,-0.103868670761585,0.025337107479572) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.027429163455963,-0.095165640115738,-0.338942468166351,0.097490787506104,0.017085831612349,0.092029705643654,-0.010973202995956,0.220209479331970,0.140588164329529,0.243839114904404,-0.221234172582626,0.214593484997749,0.178029567003250,0.087473131716251,-0.048898376524448,0.170151382684708) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.076592631638050,-0.232823356986046,0.044251069426537,-0.026912143453956,0.049543794244528,-0.056108344346285,0.090386375784874,0.064868092536926,0.031065680086613,0.181354388594627,-0.037324592471123,-0.049501989036798,-0.055643793195486,0.140287742018700,0.117972470819950,-0.041021421551704) * MODEL5_texOff(vec2(0,1));
res += mat4(0.076641403138638,0.134146645665169,-0.042710278183222,-0.119812160730362,0.051539395004511,-0.035015005618334,-0.003411433426663,0.040285617113113,0.033593423664570,0.040484845638275,-0.294762909412384,0.191562801599503,0.128518208861351,0.020097361877561,-0.119580045342445,-0.135323062539101) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.016498522832990,-0.018358213827014,0.242404490709305,-0.140173763036728,0.031195580959320,-0.037346798926592,0.043688237667084,0.094595208764076,0.028017785400152,0.163572087883949,-0.171610459685326,0.211565271019936,0.124200113117695,0.086068227887154,0.018925625830889,0.102820657193661) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.014676465652883,0.005545588675886,-0.008054775185883,0.002478206530213,0.031723581254482,-0.069608137011528,0.040654163807631,0.089029133319855,0.065511994063854,0.114155262708664,-0.068605735898018,0.047562830150127,0.014858951792121,0.057949338108301,0.047422789037228,0.126956105232239) * MODEL5_texOff(vec2(1,1));
res += mat4(0.070528775453568,0.077703125774860,-0.175300970673561,0.042752861976624,0.004045104607940,-0.015928929671645,-0.067513763904572,-0.152139455080032,0.028465058654547,-0.003085095901042,0.066538251936436,-0.036904294043779,-0.216037452220917,-0.014515641145408,-0.010389609262347,0.096856735646725) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.026326950639486,0.017331691458821,-0.032491199672222,0.026361638680100,-0.066214583814144,0.110190041363239,-0.047877509146929,-0.015086218714714,-0.312702417373657,-0.017014725133777,0.049194760620594,0.053694151341915,-0.533004224300385,0.044580124318600,-0.083088159561157,-0.003856941824779) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.010548092424870,-0.036245036870241,0.158297091722488,0.008666287176311,-0.163415610790253,0.105737425386906,-0.132094651460648,0.017238300293684,0.021650634706020,-0.051832381635904,-0.034570779651403,0.047646995633841,-0.394813150167465,-0.035588998347521,-0.065403819084167,0.059866782277822) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.065974704921246,0.169106364250183,-0.114714659750462,-0.004989226348698,-0.074155546724796,-0.057410851120949,-0.145306736230850,0.067546434700489,0.061898384243250,-0.035764079540968,0.015028721652925,0.074704647064209,-0.101994909346104,-0.029430760070682,0.018471306189895,0.033158645033836) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.033165663480759,0.102067396044731,-0.063350871205330,0.208990439772606,0.191261261701584,0.073446385562420,-0.096701301634312,0.005120898131281,0.053849756717682,0.050345651805401,-0.084655180573463,0.129810824990273,-0.922845125198364,0.131658211350441,-0.321397989988327,-0.331172436475754) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.113118566572666,0.089858338236809,0.071276567876339,0.103411816060543,-0.084686636924744,0.361519545316696,-0.109624110162258,-0.117856279015541,0.174356564879417,0.048177186399698,-0.012164117768407,0.143763259053230,-0.468758940696716,-0.354817092418671,0.024664202705026,-0.112157851457596) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.070686891674995,0.192940458655357,-0.239870235323906,0.021595984697342,0.051813341677189,0.016785319894552,0.079384900629520,0.076830215752125,-0.084825821220875,-0.054763734340668,0.075114600360394,-0.034075122326612,0.124500989913940,0.016886673867702,-0.013960024341941,-0.303237229585648) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.009030705317855,0.129498437047005,-0.210968017578125,0.054111421108246,0.040598407387733,0.029764901846647,0.026844004169106,0.010930724442005,0.019211912527680,0.013574595563114,0.226489856839180,-0.291421592235565,-0.149286761879921,0.051001410931349,-0.100619144737720,-0.515538394451141) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.090430043637753,0.082148097455502,-0.161424919962883,0.067190177738667,0.126169949769974,0.077330902218819,0.097327120602131,-0.079407058656216,0.039635352790356,-0.294988632202148,0.136708825826645,-0.037459574639797,0.051452405750751,-0.040502373129129,0.014766547828913,-0.195453777909279) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.008000294677913,-0.021056812256575,0.088165014982224,0.110120140016079) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_Medium_2x_Photo] mapping 3_1

vec4 hook()
{
vec4 res = vec4(0.114888414740562,-0.000920285354368,-0.044305913150311,-0.082994997501373);
res += mat4(0.082573145627975,-0.005217585712671,0.008334788493812,0.014872401021421,-0.013243869878352,-0.136911764740944,0.100666791200638,0.096014611423016,0.021945456042886,-0.030336754396558,-0.051781423389912,0.128364115953445,0.096678845584393,-0.022769052535295,0.058462385088205,0.088946841657162) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.133807897567749,-0.235014259815216,-0.008428409695625,0.043391607701778,-0.074301958084106,-0.118598170578480,0.082636065781116,0.097459770739079,-0.080287843942642,-0.089138709008694,-0.026619661599398,-0.001785041065887,0.156519755721092,0.255400836467743,0.155447825789452,0.308500856161118) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.157407149672508,-0.290091812610626,0.125810638070107,0.024029456079006,-0.167115420103073,0.067498117685318,0.000240635417867,-0.019309256225824,0.024360401555896,-0.038405247032642,-0.074775837361813,0.082123726606369,0.425856679677963,0.111056447029114,-0.119621172547340,0.079012215137482) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.075663141906261,-0.030076403170824,0.007292564958334,0.153107210993767,0.030260305851698,0.305665194988251,0.001039643655531,0.025178801268339,-0.076204687356949,-0.009022962301970,-0.036934513598680,0.099918872117996,-0.273705720901489,0.042007844895124,-0.114957064390182,0.119027860462666) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.020620709285140,-0.006478073075414,0.035795331001282,0.001062947791070,0.199916571378708,0.199744790792465,-0.111909359693527,0.103556312620640,-0.250046014785767,-0.154502168297768,0.042645916342735,0.028492484241724,-0.244399562478065,0.009307719767094,-0.094502061605453,0.038978934288025) * MODEL7_texOff(vec2(0,0));
res += mat4(0.039226796478033,0.176662787795067,-0.009576276876032,0.070901721715927,-0.511145234107971,-0.012562505900860,0.020477250218391,0.140540376305580,0.148150473833084,0.019092755392194,0.012805268168449,0.020532477647066,0.372894942760468,0.065595239400864,-0.015387610532343,0.110180467367172) * MODEL7_texOff(vec2(0,1));
res += mat4(0.019494075328112,0.031400188803673,0.153301507234573,-0.125937029719353,-0.000011489352801,-0.223427101969719,-0.052922241389751,-0.093976520001888,-0.009733259677887,0.131535366177559,0.141416907310486,-0.107773937284946,0.225156992673874,-0.157264247536659,-0.054118797183037,-0.026672804728150) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.127038553357124,-0.066333658993244,0.038251224905252,0.007725565694273,-0.108728297054768,-0.039141189306974,0.014744397252798,-0.123664617538452,-0.001331050414592,-0.083782792091370,0.334097266197205,-0.159001469612122,0.023574337363243,-0.085324719548225,-0.268384069204330,0.080147802829742) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.201687470078468,-0.072899617254734,-0.167406991124153,-0.013069153763354,-0.270256370306015,0.080869317054749,0.040826056152582,-0.189047574996948,0.097075298428535,0.022430941462517,0.270204901695251,-0.017432697117329,0.117777138948441,-0.075882010161877,-0.130459964275360,-0.077642984688282) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.034788314253092,-0.056643120944500,0.131398394703865,-0.031160736456513,-0.016071742400527,0.081291131675243,-0.095329016447067,0.081749424338341,0.057204321026802,0.015314836986363,-0.063751339912415,0.038385614752769,-0.100436776876450,-0.016113014891744,-0.090810075402260,-0.000872711942066) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.016754066571593,-0.113264754414558,0.143079161643982,0.050977542996407,0.064838528633118,-0.037086807191372,-0.035996302962303,-0.037804439663887,0.049543570727110,-0.049490854144096,0.142039254307747,0.214588597416878,0.035840481519699,0.134003162384033,-0.060485430061817,-0.047961451113224) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.105977170169353,0.225521534681320,0.087546475231647,0.147166684269905,-0.138990983366966,-0.040587577968836,-0.152531266212463,-0.112410478293896,-0.034182786941528,0.057460617274046,-0.068527989089489,-0.018793825060129,0.138190746307373,-0.160427674651146,-0.252660274505615,-0.026838811114430) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.088977955281734,-0.042523451149464,-0.090013734996319,-0.066836193203926,0.067096672952175,0.086098544299603,-0.056529112160206,0.166946038603783,0.037191253155470,-0.086212113499641,0.028369894251227,-0.017589045688510,-0.183514475822449,0.129927441477776,-0.007493354380131,-0.172281995415688) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.227783814072609,-0.104863196611404,-0.241327315568924,-0.230957493185997,0.101215511560440,0.183137401938438,0.071472503244877,-0.042575877159834,0.032159961760044,-0.025455713272095,-0.097109928727150,0.110342971980572,-0.018484802916646,-0.037759579718113,-0.021456591784954,0.034421280026436) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.016763037070632,0.055530440062284,-0.170575767755508,-0.023469148203731,-0.170974507927895,0.208326682448387,0.104096733033657,-0.041386611759663,0.178800508379936,0.016429532319307,-0.601960778236389,-0.087009772658348,-0.118736252188683,0.031318664550781,-0.039211150258780,-0.030663110315800) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.139806061983109,0.029685899615288,-0.069838747382164,-0.062928415834904,0.056200340390205,-0.139431089162827,0.032269198447466,-0.195180982351303,0.029535913839936,0.033925786614418,0.006922938395292,-0.023438721895218,-0.006815273780376,-0.038030680269003,-0.111166730523109,-0.069471515715122) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.050330508500338,0.109340377151966,-0.034977048635483,-0.116502583026886,0.072501040995121,-0.040238209068775,-0.101181335747242,-0.003246917622164,-0.005224799737334,0.066773213446140,-0.176166683435440,0.119882479310036,0.088150106370449,-0.063583217561245,0.010743653401732,-0.029592910781503) * MODEL8_texOff(vec2(1,0));
res += mat4(0.122038103640079,0.111081570386887,-0.113474316895008,0.093792706727982,-0.162389919161797,-0.087665349245071,-0.002211407059804,-0.017271181568503,0.085675247013569,0.154985427856445,-0.214421972632408,-0.015328793786466,-0.082933194935322,0.060925498604774,-0.014116447418928,-0.077508248388767) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.030682565644383,-0.000400997116230,-0.044079620391130,0.027464544400573,-0.021938204765320,-0.092765614390373,-0.084005519747734,0.101297467947006,0.077957481145859,0.191938683390617,0.128910660743713,0.138718724250793,0.008595702238381,0.312905520200729,-0.062715187668800,-0.111798278987408) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.010953108780086,-0.194653213024139,0.039720121771097,0.066176354885101,-0.078703120350838,-0.276776343584061,-0.033489294350147,0.194354712963104,-0.053735882043839,0.038686241954565,0.061884954571724,0.226563066244125,-0.061042748391628,-0.020480943843722,-0.039317026734352,-0.083226099610329) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.118165761232376,-0.036123339086771,-0.008094824850559,0.108146913349628,0.027812708169222,0.050018243491650,0.020988861098886,0.106072813272476,-0.084497995674610,-0.024350717663765,-0.028587559238076,-0.031346913427114,-0.017168402671814,-0.193287149071693,0.003134004538879,0.177511349320412) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.051021087914705,0.051762644201517,0.017803758382797,-0.114723548293114,-0.025219481438398,0.003812948241830,0.065194830298424,-0.112223446369171,0.125983476638794,0.228716060519218,-0.047496736049652,0.043754719197750,0.063967920839787,-0.207611843943596,-0.064985930919647,0.074834115803242) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.012371227145195,-0.039963301271200,-0.087457872927189,-0.069319844245911,0.050449702888727,-0.297320991754532,-0.118387132883072,-0.207915082573891,-0.116343714296818,0.200293466448784,-0.003621194278821,0.086174048483372,-0.406201541423798,-0.109298087656498,0.008777574636042,-0.068115107715130) * MODEL9_texOff(vec2(0,0));
res += mat4(0.015666017308831,-0.131349235773087,-0.086308032274246,0.133351415395737,-0.124334342777729,-0.067695200443268,-0.094942353665829,0.103733323514462,0.084323592483997,0.332289397716522,0.100146047770977,0.046199291944504,0.060447338968515,0.015213729813695,-0.026984816417098,0.015637898817658) * MODEL9_texOff(vec2(0,1));
res += mat4(0.079668559134007,-0.036038339138031,0.008395833894610,0.014769766479731,-0.054688386619091,-0.000540314300451,0.056421343237162,-0.023856388404965,0.124093241989613,0.036791320890188,-0.086914077401161,0.027971116825938,0.081434063613415,0.178312897682190,0.042498756200075,-0.161238685250282) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.014889602549374,0.100562676787376,-0.013241163454950,-0.114550836384296,0.006795529276133,-0.060295015573502,0.142143771052361,-0.079532779753208,0.002864626236260,-0.112572580575943,-0.177430361509323,-0.082822315394878,0.082075990736485,0.055015467107296,0.029966058209538,0.059943377971649) * MODEL9_texOff(vec2(1,0));
res += mat4(0.013339241966605,-0.140965297818184,0.129663214087486,0.044491659849882,0.076110847294331,0.060823298990726,0.074025228619576,-0.046136550605297,-0.131469234824181,-0.095995098352432,0.042026065289974,-0.074268825352192,0.029744794592261,0.005806019995362,-0.008341350592673,0.005267477594316) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.016960868611932,-0.020910663530231,-0.011032582260668,-0.002355242613703,0.064473628997803,0.009120549075305,0.043700098991394,0.051788363605738,-0.102118603885174,-0.154783919453621,0.056104734539986,-0.003859379561618,0.083602167665958,-0.101559028029442,0.259033650159836,-0.089363910257816) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.030139986425638,-0.026674229651690,0.031575500965118,-0.141237363219261,0.100592628121376,-0.075201891362667,-0.027572223916650,0.042014777660370,-0.203338369727135,-0.318638026714325,0.041976757347584,0.063737414777279,-0.013458499684930,-0.029598455876112,0.104907058179379,0.342060506343842) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.220746561884880,-0.002491577062756,-0.064012326300144,0.045913465321064,-0.005707892123610,0.094509921967983,0.008500616997480,0.040619902312756,-0.040092084556818,-0.172564089298248,0.011865073814988,0.059610955417156,-0.063463449478149,-0.143901646137238,0.082482881844044,-0.151645272970200) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.017543606460094,0.023192239925265,0.032294809818268,0.064443811774254,-0.003315979614854,-0.014869692735374,-0.024491200223565,-0.014070990495384,0.035095266997814,0.139166653156281,0.056312702596188,0.031056834384799,0.021545505151153,-0.057049818336964,0.290813326835632,-0.105519801378250) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.138294920325279,0.032108392566442,0.076010830700397,-0.005209955386817,0.040047422051430,0.062995932996273,0.082427620887756,-0.031348027288914,-0.051573034375906,0.114666335284710,-0.004661940969527,-0.006685081869364,0.062390021979809,-0.281540602445602,0.237526357173920,0.278931200504303) * MODEL10_texOff(vec2(0,0));
res += mat4(0.261255174875259,-0.046421695500612,-0.041359551250935,-0.039700396358967,-0.577859520912170,-0.037417612969875,0.085447438061237,0.041236680001020,-0.069247886538506,-0.182191133499146,-0.016227636486292,-0.121170744299889,0.150796681642532,-0.103382073342800,0.155411168932915,0.059002328664064) * MODEL10_texOff(vec2(0,1));
res += mat4(0.158852845430374,-0.092111296951771,0.001859617652372,-0.076942168176174,0.055656202137470,0.009992908686399,-0.055382568389177,0.004966144450009,-0.027181992307305,-0.116941586136818,-0.052356582134962,-0.124669313430786,0.134115591645241,-0.002173305954784,0.065528295934200,-0.143227741122246) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.013396052643657,-0.264371961355209,-0.258211791515350,-0.187945485115051,0.111391529440880,0.002428049687296,-0.037126656621695,0.048239376395941,-0.117948651313782,0.075192339718342,-0.123790338635445,-0.224556267261505,-0.005974906496704,-0.112378612160683,0.038036450743675,-0.054976996034384) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.034219034016132,-0.092002868652344,-0.118467524647713,-0.008364480920136,-0.136264458298683,-0.025506919249892,0.019659334793687,0.005966746248305,0.100475318729877,0.069148518145084,-0.100643463432789,-0.118895836174488,0.043695706874132,-0.124517761170864,0.043801177293062,0.115330748260021) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.092505559325218,-0.259178906679153,0.126132130622864,0.070388443768024,0.018345657736063,0.114077858626842,0.024872608482838,0.097117654979229,-0.049675475805998,0.079038642346859,0.040850002318621,0.031671695411205,-0.033211905509233,-0.190748348832130,0.042318806052208,0.072192192077637) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.008079186081886,0.072778530418873,-0.030722809955478,0.048494033515453,-0.100531965494156,0.135915085673332,0.030391382053494,0.010510847903788,-0.000591847812757,-0.165823802351952,-0.133422330021858,-0.571205317974091,-0.103896006941795,-0.042909685522318,-0.079805895686150,0.070005893707275) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.167610660195351,0.078213542699814,-0.067008204758167,0.023216862231493,-0.181941807270050,-0.048109412193298,0.020848341286182,-0.036786347627640,0.079718261957169,-0.039851665496826,0.043817818164825,-0.004163014702499,0.022762689739466,0.156086176633835,-0.078196190297604,0.009469673037529) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.190199494361877,0.173102721571922,0.001497656805441,-0.156130686402321,0.057290185242891,0.018802026286721,-0.080504238605499,0.200140982866287,-0.067886754870415,-0.034812774509192,-0.053406093269587,0.016071435064077,-0.123578764498234,-0.052932083606720,-0.105745211243629,-0.067350469529629) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.146707847714424,-0.105787970125675,-0.197275653481483,-0.019187049940228,-0.160515859723091,0.088857837021351,0.213103935122490,-0.038127396255732,0.016032489016652,0.021993808448315,0.084303013980389,-0.245389163494110,-0.069253422319889,0.119503185153008,-0.176625892519951,0.077789574861526) * MODEL11_texOff(vec2(0,0));
res += mat4(0.097171045839787,-0.246879145503044,0.036058794707060,-0.060943037271500,-0.214733943343163,0.138776689767838,0.098415076732635,-0.025532724335790,-0.081014692783356,0.094671957194805,0.034178223460913,0.008315611630678,-0.148120805621147,0.203518733382225,0.076975904405117,-0.114262305200100) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.044722583144903,-0.104401826858521,0.151993408799171,-0.176638841629028,0.082175202667713,-0.114275492727757,0.006396067328751,-0.021390262991190,0.130693316459656,-0.072791092097759,-0.060276608914137,0.029432056471705,-0.000602281186730,0.164074569940567,0.041373092681170,-0.137860283255577) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.033885091543198,0.174060747027397,0.182933077216148,0.065188847482204,-0.082052022218704,-0.073341190814972,-0.196776539087296,-0.102837242186069,-0.027045968919992,-0.059706833213568,-0.133917346596718,-0.035405978560448,0.262437641620636,-0.050116222351789,-0.055526975542307,-0.056185826659203) * MODEL11_texOff(vec2(1,0));
res += mat4(0.121936641633511,0.041047412902117,0.224828660488129,-0.094139084219933,-0.207556992769241,-0.040684536099434,-0.024724218994379,-0.102845713496208,-0.035159274935722,-0.083847172558308,-0.098812662065029,-0.033265773206949,-0.092616431415081,0.016844663769007,0.034398924559355,-0.138586923480034) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.040909070521593,-0.084349058568478,-0.231500431895256,0.250866532325745,0.040416631847620,-0.323709458112717,-0.046013835817575,0.052434872835875,-0.008100400678813,-0.065753296017647,0.013991974294186,0.023984855040908,-0.086616143584251,-0.104250490665436,-0.138865396380424,-0.119710661470890) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.074245795607567,-0.343525022268295,0.112841032445431,0.355171084403992,-0.071654900908470,-0.010074771009386,-0.108723580837250,0.054253030568361,0.020815143361688,-0.112307570874691,-0.123413801193237,-0.046094045042992,0.148894041776657,0.082210294902325,0.055311329662800,0.219037249684334) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.086295612156391,0.157857984304428,-0.206968039274216,0.230146959424019,-0.007949138060212,0.016199069097638,0.035973943769932,0.132384091615677,-0.095253400504589,-0.111813262104988,0.044421013444662,0.062037996947765,-0.004947536159307,0.064636819064617,-0.100115552544594,-0.029107740148902) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.086337059736252,-0.106033205986023,-0.051818545907736,-0.167208090424538,0.138579651713371,-0.313104867935181,-0.052618514746428,-0.034935399889946,-0.069584764540195,-0.020129326730967,0.062061347067356,-0.001081221387722,-0.133558586239815,0.020658867433667,0.037542473524809,-0.216505527496338) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.045496668666601,-0.129366323351860,0.000253624137258,-0.212006106972694,-0.232627958059311,0.019183566793799,-0.000171633248101,0.069286547601223,-0.046019673347473,-0.079786613583565,-0.149551764130592,-0.372460812330246,-0.073098599910736,-0.322955608367920,0.002165389945731,0.174809753894806) * MODEL12_texOff(vec2(0,0));
res += mat4(0.047926243394613,-0.135041385889053,0.034273236989975,0.071111880242825,0.018775369971991,0.037994191050529,-0.036240074783564,0.001563730649650,0.123428680002689,0.004656630102545,0.058747474104166,0.196781098842621,0.021127976477146,-0.299711406230927,0.120247811079025,-0.105660006403923) * MODEL12_texOff(vec2(0,1));
res += mat4(0.078250199556351,-0.073588036000729,0.051644001156092,0.089686356484890,0.073025591671467,0.109881766140461,0.310119688510895,-0.227490499615669,-0.214326724410057,0.044495869427919,-0.007993271574378,-0.086506009101868,-0.197295740246773,0.182413071393967,0.130940109491348,-0.330891489982605) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.007687341421843,-0.064306847751141,0.203698679804802,-0.094542667269707,-0.186643108725548,0.083183906972408,0.057436008006334,0.071194797754288,-0.041541222482920,0.086127124726772,0.052143990993500,-0.014327192679048,-0.092859335243702,0.097999878227711,0.441053688526154,-0.232721030712128) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.046279981732368,0.018467608839273,0.017284261062741,0.036134161055088,-0.013723841868341,0.036725182086229,0.009946770034730,-0.015951061621308,0.132543027400970,0.060208231210709,0.015469630248845,0.091076686978340,0.232462361454964,0.101086199283600,0.210591301321983,0.030672218650579) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.002544608665630,-0.046809289604425,0.006454961840063,0.259958326816559) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_Medium_2x_Photo] mapping 3_2

vec4 hook()
{
vec4 res = vec4(-0.108218789100647,-0.047025002539158,0.028869867324829,-0.090717755258083);
res += mat4(0.059385921806097,0.024793403223157,0.039970669895411,0.117515765130520,0.002890021074563,0.015254589729011,0.082249663770199,-0.061847738921642,-0.073560029268265,0.097239933907986,-0.126006007194519,0.068574942648411,-0.051318198442459,-0.002471634885296,0.225566744804382,-0.042074661701918) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.227142259478569,-0.304644852876663,-0.025083094835281,-0.023789729923010,0.010422566905618,-0.181281730532646,-0.051615640521049,0.158079594373703,-0.161834493279457,-0.029778856784105,-0.052626967430115,0.071711041033268,0.034667164087296,-0.042078357189894,-0.056556314229965,-0.014454027637839) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.048171028494835,-0.055524755269289,0.109628804028034,0.086223311722279,-0.025432707741857,0.002506896154955,-0.063578546047211,0.012725654058158,0.038237776607275,0.126947432756424,-0.085412025451660,0.090547233819962,0.026953386142850,0.001698066946119,-0.082374632358551,-0.138564676046371) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.035173200070858,0.054449647665024,0.021774839609861,0.099308930337429,-0.009964331984520,0.114783152937889,-0.116113394498825,-0.082928560674191,-0.087548173964024,0.035572592169046,0.043298743665218,-0.002404774073511,-0.262245297431946,0.025883400812745,-0.013720176182687,-0.120285235345364) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.183436796069145,-0.151762560009956,-0.070057399570942,0.156229227781296,-0.025052603334188,-0.210579484701157,-0.041204284876585,0.293110787868500,-0.023376300930977,-0.024168806150556,-0.044718369841576,0.039991863071918,0.067608304321766,0.129619717597961,-0.029708495363593,0.016005540266633) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.176902189850807,-0.130170404911041,-0.085630118846893,0.100505627691746,0.186259984970093,0.242592737078667,0.059994336217642,0.038010541349649,0.121141441166401,0.044631894677877,-0.012750490568578,-0.007639195304364,0.056107282638550,-0.010306754149497,0.060056027024984,-0.010348247364163) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.014613724313676,0.175038442015648,0.017043516039848,0.036513533443213,-0.062884338200092,0.034703113138676,0.116705991327763,0.156051799654961,-0.085919611155987,-0.071600973606110,-0.076441302895546,0.004120876546949,-0.108471989631653,-0.064581803977489,0.010596588253975,-0.128400832414627) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.092099130153656,0.041315339505672,0.017823647707701,0.190812379121780,0.029953720048070,-0.178134962916374,-0.165269598364830,0.095546960830688,-0.080637358129025,0.016285743564367,-0.233908966183662,-0.128221854567528,-0.052207730710506,-0.047749459743500,0.107192821800709,0.013358402997255) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.007655574940145,-0.104728356003761,0.041976980865002,0.017698306590319,-0.095207042992115,0.062470834702253,0.078921072185040,0.011145106516778,0.096040800213814,0.131893828511238,-0.212649852037430,0.094773925840855,0.168802380561829,0.071185946464539,0.041905779391527,-0.027989659458399) * MODEL7_texOff(vec2(1,1));
res += mat4(0.065357245504856,-0.068082824349403,0.054163783788681,-0.044172532856464,-0.119206003844738,0.176246494054794,-0.108312882483006,0.117427915334702,0.060280945152044,0.041738457977772,0.064809359610081,0.059775751084089,-0.041318397969007,-0.042529419064522,0.059432778507471,-0.121792286634445) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.006017671432346,0.027305919677019,-0.177371621131897,-0.088731519877911,0.122988052666187,0.060860730707645,-0.106879919767380,0.020155977457762,-0.000165427249158,-0.061848126351833,-0.030746253207326,-0.011497279629111,-0.050723519176245,-0.052335109561682,-0.005920483265072,0.122814752161503) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.080915242433548,0.101549804210663,-0.126219287514687,0.073549732565880,0.326822251081467,0.248035326600075,-0.152012735605240,-0.004977441392839,0.031850166618824,0.052738673985004,0.119879238307476,0.068281635642052,0.147473469376564,0.036365058273077,-0.067788831889629,-0.240210860967636) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.135352030396461,0.086196258664131,-0.089943856000900,-0.004057897720486,-0.029061224311590,-0.010375180281699,0.134738579392433,0.153050929307938,-0.048067077994347,0.093529015779495,0.061971906572580,0.006457518786192,-0.000177536931005,0.103211596608162,-0.156376317143440,-0.102011919021606) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.068861745297909,0.059116773307323,0.309242635965347,0.121202275156975,0.043019626289606,0.024602238088846,0.001123739755712,0.057268161326647,0.172611460089684,0.136704489588737,-0.003278229152784,-0.118445508182049,-0.014710262417793,-0.005218375939876,0.103806115686893,0.054199311882257) * MODEL8_texOff(vec2(0,0));
res += mat4(0.011220252141356,0.056628387421370,0.013862790539861,-0.016382496803999,0.161542236804962,0.190910041332245,0.035553984344006,-0.030108658596873,-0.085958771407604,0.075252741575241,-0.062047604471445,-0.070109449326992,0.120449848473072,0.070732817053795,-0.185032486915588,-0.042842302471399) * MODEL8_texOff(vec2(0,1));
res += mat4(0.066293351352215,0.097523719072342,0.018752945587039,0.012226575985551,-0.171369150280952,0.123245544731617,-0.084951639175415,0.083358444273472,-0.072686031460762,0.014398066326976,0.014988007955253,-0.032003369182348,-0.005636198911816,-0.065747939050198,0.015115561895072,0.056745655834675) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.087291978299618,0.020891012623906,-0.141444534063339,-0.110349148511887,-0.128245800733566,-0.015293601900339,0.037570804357529,0.152140930294991,0.092909969389439,0.049929428845644,-0.005251162685454,-0.012061140500009,-0.008930965326726,-0.078834325075150,-0.048494096845388,-0.005788669455796) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.168321490287781,-0.060597196221352,0.029038112610579,0.050289660692215,-0.046374619007111,0.013018948026001,-0.002011202741414,0.001889656763524,0.044628992676735,0.020121192559600,0.079230733215809,0.002525732852519,0.034653749316931,0.086987182497978,-0.004399672150612,-0.029183790087700) * MODEL8_texOff(vec2(1,1));
res += mat4(0.030562387779355,-0.103015974164009,-0.014613975770772,-0.033177524805069,-0.046721335500479,-0.068812854588032,0.044706307351589,-0.178171902894974,-0.021225130185485,0.094089925289154,0.068752482533455,-0.015076306648552,0.013705606572330,-0.022113600745797,-0.017856232821941,0.158546015620232) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.009149567224085,0.005967547185719,-0.023815508931875,-0.022260123863816,0.145117327570915,-0.151442632079124,0.039723079651594,-0.084755487740040,-0.030321178957820,-0.169373795390129,0.060096818953753,-0.056212384253740,0.018871530890465,-0.025865938514471,-0.013419881463051,-0.114721544086933) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.096782110631466,0.058905418962240,-0.068977005779743,-0.000688204774633,0.108081765472889,0.054904043674469,-0.009054557420313,-0.053658660501242,0.033669333904982,0.039030246436596,0.192355647683144,-0.014372848905623,0.083165369927883,-0.049570821225643,0.072085410356522,0.092602938413620) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.029246667400002,0.139048010110855,-0.042709823697805,-0.080427557229996,-0.127720147371292,-0.328881949186325,-0.038371164351702,0.042581852525473,0.011705322191119,0.028113413602114,0.074384778738022,0.118902452290058,0.067651107907295,-0.081218756735325,0.168243587017059,0.139475017786026) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.126392081379890,0.021075287833810,0.141442641615868,0.004017880186439,-0.111116915941238,-0.216297298669815,-0.120335355401039,-0.095764189958572,0.020627588033676,-0.157277047634125,0.153628706932068,0.072324752807617,0.310551732778549,0.132955148816109,0.078613914549351,-0.123655647039413) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.064434081315994,-0.148840442299843,0.152227729558945,-0.133323326706886,0.147177293896675,0.041847456246614,0.045971121639013,-0.038595806807280,0.060994800180197,0.033412877470255,-0.041409511119127,-0.012555223889649,-0.332728683948517,-0.290766626596451,-0.108231589198112,0.130827248096466) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.082040667533875,0.012960890308022,-0.046711754053831,-0.012404539622366,-0.025542534887791,-0.128803119063377,-0.039047051221132,-0.099742114543915,0.009411953389645,-0.075154885649681,0.014414775185287,0.128917396068573,0.133190989494324,-0.191892519593239,-0.048298642039299,-0.041971296072006) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.001988195814192,-0.011646894738078,0.034335944801569,-0.138597339391708,-0.000303589185933,-0.146821916103363,0.056573990732431,-0.105296924710274,-0.084675215184689,-0.217930272221565,0.071042634546757,-0.029182910919189,0.048609800636768,0.045881327241659,0.075636833906174,0.074412770569324) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.041535131633282,0.095003649592400,-0.275526612997055,-0.177614063024521,0.068411298096180,0.051030620932579,-0.000163565477123,0.015192210674286,0.065785638988018,0.074542969465256,0.108181037008762,-0.071435868740082,0.135933533310890,-0.115130327641964,-0.034865386784077,-0.041475005447865) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.013284910470247,0.066233374178410,-0.034875985234976,0.005531722214073,0.047272011637688,0.055955678224564,-0.015971796587110,0.001215670490637,-0.029101584106684,-0.217308700084686,-0.080913327634335,0.000206960132346,0.111365020275116,0.169617012143135,0.051393590867519,0.113530457019806) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.109957791864872,0.014993492513895,-0.088375166058540,-0.201974093914032,-0.092429213225842,0.134114384651184,0.057953070849180,-0.029907459393144,0.055181208997965,-0.038804177194834,-0.019199997186661,0.078437924385071,-0.062990620732307,-0.057676259428263,0.068582095205784,0.197458371520042) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.083905607461929,0.072334036231041,-0.017499953508377,0.015378840267658,-0.061752367764711,-0.047717794775963,-0.158246859908104,0.007613791152835,0.003933825530112,-0.009329748339951,-0.024635277688503,-0.117805987596512,0.014904311858118,0.113282293081284,-0.015120007097721,0.156080394983292) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.209493190050125,-0.120727941393852,0.040349338203669,0.115558862686157,-0.052489321678877,-0.032619915902615,-0.043109886348248,0.047179736196995,-0.008400510065258,0.074480339884758,-0.057870887219906,-0.040477331727743,0.039232138544321,0.110947817564011,0.002445098478347,0.119670249521732) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.025669939815998,0.081359803676605,-0.352603524923325,-0.226311311125755,0.020771080628037,0.207778736948967,-0.101727001368999,0.252895027399063,-0.065227463841438,-0.382369250059128,0.121245473623276,0.100339591503143,0.071875020861626,-0.004384865518659,0.013543333858252,0.119447693228722) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.114961288869381,0.046913713216782,-0.216868326067924,0.058412093669176,0.016882900148630,0.053497809916735,0.184433057904243,-0.037400260567665,-0.048911374062300,-0.023993650451303,0.015247314237058,-0.020119225606322,-0.184911802411079,-0.027146054431796,0.125163748860359,0.218820780515671) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.023628542199731,-0.112262889742851,0.036649629473686,-0.032931022346020,0.040497940033674,-0.017431721091270,-0.024295315146446,-0.026976678520441,-0.033133089542389,0.108246617019176,-0.164837554097176,-0.031313836574554,0.030617723241448,0.063926748931408,-0.012017952278256,0.101457551121712) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.077300831675529,-0.060663525015116,0.208947882056236,0.084646947681904,-0.140180483460426,0.094632096588612,-0.007250958122313,-0.135640218853951,-0.138134181499481,-0.109407514333725,-0.021863212808967,-0.079778857529163,-0.068506419658661,0.383409172296524,0.048048168420792,0.173877194523811) * MODEL10_texOff(vec2(1,0));
res += mat4(0.153906047344208,0.094450935721397,0.063866421580315,-0.069320678710938,-0.067037090659142,0.025480292737484,0.039761718362570,-0.141645774245262,-0.015026390552521,-0.042876664549112,-0.021469706669450,0.013491798192263,-0.048482187092304,-0.018823347985744,0.048226483166218,0.130718633532524) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.040813267230988,-0.234384834766388,0.048253007233143,-0.188781887292862,-0.070504158735275,-0.029072014614940,0.028919644653797,0.150746941566467,-0.031288024038076,-0.016146915033460,-0.092050120234489,-0.081737972795963,-0.021332764998078,-0.004661538638175,0.046313673257828,-0.134328767657280) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.024662304669619,0.037915199995041,-0.084138840436935,0.006517958827317,-0.114907719194889,-0.093839839100838,-0.139065235853195,-0.165272191166878,-0.008502531796694,-0.141980111598969,0.002689204411581,-0.167779639363289,0.035655755549669,0.150854840874672,0.155552655458450,-0.107252247631550) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.009497771039605,-0.020288985222578,-0.041125841438770,-0.045821528881788,-0.078628525137901,-0.045859869569540,0.045943520963192,0.023726684972644,-0.089855864644051,0.054555717855692,-0.177498951554298,0.065772235393524,0.033393986523151,-0.096962273120880,0.002669058507308,-0.034833945333958) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.017075523734093,0.084315344691277,0.009292040951550,-0.075500369071960,-0.263081431388855,-0.254398018121719,-0.010070818476379,0.087155334651470,-0.005767009686679,0.159313291311264,-0.030188947916031,0.159601986408234,-0.022081287577748,-0.134168863296509,0.001626164303161,-0.175727546215057) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.119092941284180,0.064758218824863,-0.021075259894133,0.058430351316929,0.185722380876541,0.189017280936241,-0.072946645319462,-0.120075859129429,-0.007118984125555,-0.155540078878403,0.085275448858738,0.118670158088207,0.073032639920712,-0.077791534364223,-0.069445937871933,0.164431318640709) * MODEL11_texOff(vec2(0,0));
res += mat4(0.055826913565397,0.046971913427114,-0.009493980556726,-0.092955805361271,0.075977258384228,0.025635216385126,-0.101758591830730,-0.002164639532566,-0.024921286851168,0.008279406465590,0.074378274381161,0.060032378882170,0.106061637401581,0.097762338817120,0.154948234558105,-0.112307928502560) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.060859691351652,-0.042356610298157,0.128457203507423,0.033529836684465,-0.206925094127655,-0.144906878471375,0.052276004105806,-0.028287267312407,-0.030045369639993,0.060036685317755,0.024284681305289,-0.007179156411439,0.034466788172722,-0.088557273149490,-0.043946199119091,-0.161930203437805) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.113565765321255,-0.239881664514542,-0.152571633458138,-0.096299253404140,-0.209737509489059,0.123391091823578,0.070266067981720,0.018377741798759,-0.048247683793306,0.004806695971638,-0.044499237090349,0.002865913091227,-0.049570731818676,0.039941653609276,0.118106827139854,0.051206171512604) * MODEL11_texOff(vec2(1,0));
res += mat4(0.228382989764214,0.191894069314003,0.095133900642395,-0.025265205651522,-0.110695384442806,0.031625293195248,0.096677705645561,-0.024310825392604,-0.022242752835155,0.018514709547162,-0.006011500023305,0.027541622519493,0.161494299769402,0.052233282476664,0.094376124441624,-0.019851759076118) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.003898025956005,-0.106535248458385,-0.088050529360771,-0.020276531577110,0.097964115440845,0.062468819320202,0.028733428567648,0.034187052398920,-0.120077751576900,0.057340431958437,-0.046665318310261,-0.066970191895962,-0.032430227845907,-0.033761121332645,-0.032487560063601,-0.010209391824901) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.047739263623953,0.110035337507725,-0.049929510802031,-0.010732940398157,0.050248108804226,0.004103871062398,0.085766680538654,0.010640540160239,0.127857878804207,-0.037399284541607,0.121363148093224,-0.048323214054108,-0.009162167087197,-0.077944464981556,-0.105495840311050,0.135342240333557) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.102042205631733,0.043474610894918,-0.054997995495796,-0.050505429506302,-0.031686086207628,-0.047500774264336,-0.001465052599087,0.032428428530693,0.001369775505736,-0.051896475255489,0.172838956117630,0.001576031092554,0.089947424829006,0.121652156114578,-0.100129552185535,-0.084123827517033) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.211134195327759,-0.020740414038301,-0.133865058422089,0.012868223711848,-0.077145323157310,-0.031943269073963,-0.259775310754776,-0.407170832157135,-0.006708176806569,-0.097886420786381,0.075436241924763,-0.009794755838811,-0.049251560121775,-0.080848529934883,-0.013046085834503,-0.081040747463703) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.014620103873312,-0.004404910840094,-0.200262948870659,-0.071258120238781,-0.000873880228028,-0.047896716743708,0.082459747791290,0.174631610512733,0.069253034889698,0.106912739574909,-0.091008722782135,-0.254720568656921,-0.115501649677753,-0.053069550544024,0.010916008614004,-0.112162642180920) * MODEL12_texOff(vec2(0,0));
res += mat4(0.254204124212265,0.031092990189791,0.121984452009201,-0.006278455257416,-0.076694920659065,0.038699507713318,0.015171009115875,0.020203266292810,-0.045700605958700,-0.130518525838852,-0.046893693506718,0.010205402038991,0.142988458275795,0.024882676079869,-0.001452626311220,0.009152227081358) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.056138541549444,0.162659987807274,-0.039293147623539,0.065619178116322,0.081807821989059,-0.039113637059927,0.079629473388195,-0.144667297601700,-0.047316491603851,-0.048701900988817,0.028926527127624,0.000188086691196,-0.163361370563507,-0.194826409220695,-0.081752240657806,-0.082616537809372) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.126851812005043,0.000654094037600,-0.241392076015472,0.111996889114380,0.103551425039768,0.062962777912617,-0.004655530210584,0.121115691959858,0.101574562489986,0.003448213217780,-0.124543957412243,-0.069657646119595,0.105792097747326,0.043027620762587,0.025243608281016,-0.030211824923754) * MODEL12_texOff(vec2(1,0));
res += mat4(0.035287268459797,-0.133600413799286,0.014395996928215,0.120884165167809,-0.018503008410335,-0.024552777409554,-0.003560187760741,0.003459721338004,-0.062734566628933,-0.051764443516731,-0.031337432563305,0.090870834887028,0.061286244541407,0.075293928384781,-0.052873402833939,0.073741748929024) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.474280297756195,-0.032608464360237,-0.059548027813435,-0.079892054200172) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_Medium_2x_Photo] mapping 3_3

vec4 hook()
{
vec4 res = vec4(-0.043895732611418,-0.058852694928646,0.039967596530914,0.054659873247147);
res += mat4(0.201852202415466,0.066695831716061,0.096907719969749,-0.067897140979767,-0.098334915935993,-0.193410560488701,-0.013466998934746,0.019874261692166,0.047731425613165,0.041019499301910,-0.098181001842022,-0.008059563115239,-0.026445657014847,0.037967383861542,0.043240908533335,-0.002317736158147) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.069112494587898,0.049436565488577,0.116395339369774,-0.183709457516670,0.131504788994789,-0.072015352547169,-0.225489020347595,0.011951513588428,-0.024669114500284,0.070986278355122,-0.017419608309865,-0.001630330225453,-0.033253025263548,-0.069017767906189,-0.093475952744484,0.039115536957979) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.004488518927246,-0.016582729294896,-0.058412078768015,0.001355605549179,0.018126025795937,0.186646237969398,0.062187813222408,0.011019319295883,0.044260900467634,0.244721055030823,-0.061094898730516,-0.012437676079571,-0.220967277884483,-0.231107696890831,0.116336382925510,-0.094372220337391) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.133944272994995,0.038409333676100,-0.032113511115313,0.024662004783750,-0.068302124738693,-0.322030246257782,-0.044207189232111,0.131129160523415,-0.032916586846113,0.059087567031384,-0.011211358942091,-0.059154398739338,-0.022934997454286,0.000607427849900,0.219743967056274,-0.041113507002592) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.005112991668284,0.025021990761161,-0.101180292665958,-0.123581424355507,-0.275903403759003,-0.070968188345432,-0.088330596685410,0.007819847203791,-0.079847812652588,-0.116983398795128,-0.103446803987026,-0.105538055300713,0.015510823577642,-0.145034328103065,0.212992236018181,-0.085184186697006) * MODEL7_texOff(vec2(0,0));
res += mat4(0.089138180017471,0.183879449963570,0.124413989484310,0.082441128790379,0.166942283511162,0.327069789171219,0.095973066985607,0.028567701578140,0.008409317582846,0.067928440868855,-0.125270739197731,-0.035719458013773,-0.190761476755142,-0.071732670068741,-0.000355518801371,-0.092474542558193) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.096403844654560,-0.010448149405420,0.092190548777580,0.036034889519215,0.117927134037018,-0.134719774127007,-0.030461542308331,0.083299577236176,-0.030621977522969,0.037420257925987,-0.108274415135384,-0.021972907707095,-0.173674330115318,-0.034589905291796,-0.079229228198528,-0.049774702638388) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.203771218657494,0.141465321183205,0.046583175659180,0.004540409427136,0.186209514737129,0.043576139956713,0.114539310336113,0.039138119667768,-0.092320345342159,-0.161860853433609,-0.332732915878296,-0.049741894006729,0.243963971734047,-0.109275266528130,-0.072819180786610,-0.011392499320209) * MODEL7_texOff(vec2(1,0));
res += mat4(0.035877667367458,0.042989317327738,-0.017840696498752,-0.001453747274354,0.033365525305271,0.002269760007039,0.010439038276672,-0.007202003616840,-0.033022172749043,0.249936506152153,-0.125100910663605,-0.040692988783121,-0.120815187692642,-0.000080884448835,0.029228966683149,-0.049071136862040) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.044195618480444,-0.089885465800762,0.068648442625999,0.043634466826916,0.028455162420869,0.048105675727129,-0.053249627351761,-0.091561526060104,0.022548014298081,0.024364415556192,0.007639885880053,-0.019253695383668,-0.118392564356327,-0.095942795276642,0.008296782150865,0.043912574648857) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.044439576566219,-0.169876083731651,-0.117243282496929,0.123003564774990,-0.154498144984245,-0.033282384276390,0.018930980935693,-0.126056239008904,0.092097453773022,-0.015844412147999,0.060421682894230,0.091109618544579,0.207132965326309,0.002936659147963,-0.060187604278326,-0.067137874662876) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.124121785163879,0.081448577344418,-0.071675494313240,0.031148271635175,-0.008192125707865,0.258868902921677,0.037588063627481,-0.054010055959225,0.199314981698990,0.131993234157562,0.051384445279837,0.114769376814365,-0.019076839089394,-0.148045808076859,0.113969542086124,-0.106683723628521) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.078291177749634,-0.081976279616356,-0.056986130774021,0.144719332456589,0.183387503027916,0.183101654052734,0.120294533669949,-0.155701845884323,-0.043399553745985,-0.012104413472116,0.163644984364510,0.007779765874147,-0.115198381245136,-0.263977348804474,-0.109937451779842,0.059606153517962) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.072689868509769,0.269817113876343,0.086219184100628,0.266857177019119,0.028829988092184,-0.099974170327187,0.110012665390968,-0.072734899818897,0.082444489002228,-0.076275691390038,0.057371795177460,0.043943062424660,0.114366404712200,0.218982622027397,0.308265089988708,-0.037116073071957) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.024421676993370,0.094448119401932,0.012855976819992,0.075446814298630,0.095031134784222,0.127178758382797,-0.027056410908699,-0.086208328604698,-0.199515402317047,-0.297539442777634,0.118984133005142,0.061834599822760,0.027430672198534,-0.081073269248009,-0.103106506168842,-0.078604117035866) * MODEL8_texOff(vec2(0,1));
res += mat4(0.072837449610233,-0.056927796453238,0.033751733601093,0.132264107465744,-0.169607117772102,0.281428068876266,0.023058559745550,-0.071635946631432,0.011715422384441,-0.064707547426224,0.062722228467464,0.038158547133207,0.146242558956146,-0.021230962127447,-0.006677129305899,-0.008089661598206) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.119984030723572,0.024465877562761,0.128626719117165,0.015197101980448,-0.027976682409644,0.118895456194878,-0.056684356182814,-0.105910748243332,-0.032835591584444,0.101434417068958,0.077104561030865,-0.032182451337576,-0.142345666885376,0.010026151314378,0.061812762171030,0.025401519611478) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.180409431457520,0.019319031387568,0.005452061071992,0.045650821179152,0.008642944507301,-0.035098373889923,-0.051448065787554,-0.054926984012127,-0.043962005525827,-0.179391890764236,0.184519201517105,-0.020402714610100,0.059387844055891,0.128083601593971,0.001084283925593,0.034176010638475) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.065221533179283,0.062232561409473,-0.005545034538954,0.031711675226688,-0.039637677371502,-0.072865255177021,0.020758926868439,-0.044875357300043,0.156491905450821,0.122686579823494,-0.155554682016373,-0.045111306011677,0.122798249125481,0.168154254555702,0.079748392105103,-0.010478989221156) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.011922893114388,-0.000698135409039,-0.103485643863678,0.088222824037075,0.005868284031749,-0.197468042373657,-0.138028159737587,0.013737224973738,-0.058536082506180,-0.158504664897919,0.126392006874084,-0.019312521442771,-0.057296145707369,0.154683470726013,0.106715925037861,-0.078379087150097) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.137036129832268,0.040057152509689,-0.179204270243645,0.065934002399445,0.056440241634846,0.059608675539494,-0.104176290333271,0.015684954822063,0.008791857399046,-0.049325771629810,0.127109348773956,-0.006725477986038,0.011509260162711,-0.194592371582985,-0.047980327159166,-0.024726871401072) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.036699328571558,-0.049104072153568,0.029954668134451,0.066152937710285,-0.107171565294266,-0.125775456428528,-0.178435117006302,-0.019838720560074,0.139714270830154,0.142070487141609,0.062322918325663,-0.143098220229149,0.140354886651039,0.168782144784927,-0.009780835360289,-0.009064462967217) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.055027432739735,-0.044349808245897,0.258731156587601,0.032566923648119,-0.211134299635887,-0.214450702071190,-0.436390250921249,0.011493960395455,0.091660536825657,-0.201318576931953,0.131636112928391,-0.093623280525208,0.157687947154045,0.120357528328896,0.153392612934113,-0.085748799145222) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.164719834923744,0.095507077872753,0.017936494201422,0.016962556168437,0.165825471282005,0.114645443856716,0.031605172902346,0.014756087213755,0.067876242101192,-0.021595913916826,-0.080865100026131,-0.017388641834259,-0.173370122909546,-0.289252817630768,-0.032034672796726,-0.062552608549595) * MODEL9_texOff(vec2(0,1));
res += mat4(0.036448240280151,0.054754771292210,-0.032871600240469,0.035636473447084,0.059059556573629,-0.055234394967556,0.039484802633524,-0.008361731655896,-0.009413360618055,0.093721337616444,-0.086549147963524,-0.088885061442852,-0.161547720432281,0.035540953278542,0.140262320637703,-0.021424980834126) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.087334237992764,-0.116133712232113,0.003072669263929,-0.049476705491543,-0.180777072906494,-0.061538297683001,-0.045339219272137,-0.002949869958684,-0.027638316154480,0.081493712961674,-0.054288085550070,-0.109796978533268,-0.119514137506485,-0.063269950449467,-0.032321341335773,0.036527510732412) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.098488487303257,-0.169713348150253,-0.000521848152857,-0.001001498429105,0.030986811965704,0.023913742974401,-0.030854856595397,0.011902868747711,0.118121132254601,-0.084703743457794,-0.055011954158545,-0.025664921849966,-0.009723978117108,-0.143199086189270,0.047255180776119,0.009532531723380) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.033455725759268,-0.021261036396027,0.018092086538672,0.066320344805717,-0.093599386513233,-0.015870377421379,-0.040087457746267,0.007124022580683,-0.073339991271496,-0.082636974751949,-0.055864676833153,0.005985619965941,0.044830258935690,-0.012649819254875,-0.049359817057848,0.010509344749153) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.107915431261063,-0.149050772190094,-0.099134847521782,0.078782469034195,0.003277215175331,0.080526709556580,-0.053023952990770,0.096399471163750,0.208677098155022,-0.021716300398111,-0.114670589566231,0.048339698463678,0.167370483279228,-0.024869477376342,-0.033905856311321,-0.009455554187298) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.123293451964855,-0.065392866730690,0.035195585340261,-0.028419703245163,-0.082273602485657,0.048708114773035,0.073554217815399,-0.050813328474760,0.090701147913933,-0.073189601302147,-0.074456974864006,0.032561302185059,-0.066567748785019,-0.000072278242442,-0.165720313787460,0.018211299553514) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.019410895183682,0.072264052927494,0.033688690513372,-0.058439742773771,0.153250515460968,0.116707451641560,0.099246032536030,-0.037311211228371,0.028303053230047,-0.083797179162502,-0.040071282535791,-0.019594576209784,0.059391394257545,-0.063527494668961,-0.068417482078075,0.053963687270880) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.088268764317036,-0.183157354593277,-0.403560638427734,-0.168689489364624,0.137596771121025,0.155662834644318,0.328621119260788,0.001399481669068,-0.019507873803377,0.086690455675125,0.136550337076187,-0.001665977411903,0.206295609474182,0.196410462260246,-0.064975664019585,-0.056533351540565) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.069061376154423,-0.141021564602852,0.023527337238193,-0.030676869675517,0.124196462333202,0.049295291304588,-0.041419275105000,-0.023342847824097,0.060592487454414,0.074694126844406,0.017598284408450,0.026112614199519,-0.053243923932314,-0.115979157388210,0.000941738486290,-0.050589818507433) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.083409577608109,-0.003525541862473,-0.037417624145746,-0.097638130187988,-0.006064032204449,0.015636887401342,-0.006439792923629,-0.018313005566597,-0.191715463995934,-0.124229595065117,0.023557255044580,0.040268331766129,0.017322048544884,-0.074360333383083,-0.012616879306734,0.040297053754330) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.146345093846321,-0.075411692261696,-0.092402547597885,-0.052502743899822,-0.042816899716854,0.041861195117235,-0.131180554628372,0.009817938320339,-0.045623026788235,0.155457124114037,-0.000902907806449,-0.014790795743465,0.005151663441211,0.179551184177399,0.066777765750885,0.053449183702469) * MODEL10_texOff(vec2(1,0));
res += mat4(0.081571146845818,0.046807810664177,0.021984430029988,-0.047149784862995,-0.077622801065445,-0.053249333053827,-0.019588807597756,0.008228961378336,-0.185036256909370,-0.111465208232403,-0.023876992985606,-0.034962829202414,0.060393143445253,-0.078014746308327,0.100379921495914,-0.004516032990068) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.035275127738714,-0.276618838310242,-0.200944155454636,0.045117255300283,0.209488987922668,0.072398982942104,-0.074343323707581,-0.176514908671379,-0.063011407852173,-0.063767068088055,0.020964412018657,0.003202830906957,0.142301708459854,-0.070403724908829,-0.174805939197540,0.056598380208015) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.171956762671471,-0.000915307376999,-0.188172295689583,0.023588940501213,-0.134914934635162,0.210628315806389,0.188786461949348,-0.042803090065718,-0.259228914976120,-0.039995606988668,-0.022053970023990,-0.138431176543236,0.219717159867287,0.032601062208414,-0.204498916864395,0.094559639692307) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.151574239134789,-0.131483569741249,-0.128451079130173,-0.003919116687030,-0.108433842658997,-0.018746022135019,0.099653080105782,-0.024558162316680,-0.121090814471245,-0.073599524796009,-0.000630453228951,-0.057015798985958,-0.043006129562855,-0.072059176862240,-0.117361277341843,-0.040682077407837) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.022216396406293,-0.019568705931306,-0.197867631912231,0.019310921430588,0.046470731496811,0.087179243564606,0.126334398984909,-0.467721253633499,0.077733330428600,-0.010046040639281,-0.003708880394697,-0.002368680201471,-0.070510253310204,0.053469810634851,-0.066449530422688,-0.046693161129951) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.027635104954243,-0.190131843090057,0.019425000995398,0.032376203685999,0.175612509250641,0.193527370691299,0.039759412407875,0.657239377498627,0.140115246176720,0.205420747399330,0.126179561018944,-0.121222957968712,0.041607297956944,-0.095767982304096,-0.026973022148013,-0.003705496666953) * MODEL11_texOff(vec2(0,0));
res += mat4(0.186383560299873,0.095258757472038,0.102151803672314,0.022533759474754,0.040504217147827,-0.051362015306950,-0.021936297416687,0.094999015331268,-0.079211533069611,0.004046796355397,0.040959957987070,-0.063022516667843,0.099489413201809,0.129266187548637,0.015015020966530,0.043560422956944) * MODEL11_texOff(vec2(0,1));
res += mat4(0.265222936868668,0.119573540985584,0.012678248807788,-0.092635653913021,-0.124297112226486,0.029782282188535,-0.013614302501082,-0.023733308538795,-0.036241419613361,0.000151086031110,-0.009556775912642,0.017421020194888,-0.143044516444206,-0.179027974605560,-0.025678429752588,-0.092495910823345) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.056393750011921,-0.263420253992081,0.090557962656021,0.006325574591756,-0.022397074848413,-0.056639369577169,-0.183004841208458,-0.166623070836067,-0.031046262010932,-0.010451377369463,-0.098139695823193,-0.001510300207883,-0.029632929712534,-0.146918788552284,-0.185295194387436,-0.049222372472286) * MODEL11_texOff(vec2(1,0));
res += mat4(0.018666299059987,0.203954145312309,-0.127181306481361,0.010772876441479,0.151895582675934,-0.005986529402435,-0.077899314463139,-0.014447240158916,0.042792860418558,0.065369680523872,-0.062521100044250,-0.022985421121120,0.201356604695320,0.094918385148048,-0.121452070772648,0.016323583200574) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.048848077654839,0.205393731594086,0.070369921624660,-0.081211254000664,0.027226235717535,-0.073298707604408,-0.152202531695366,0.056434847414494,-0.113852247595787,-0.068539634346962,0.014631935395300,-0.070938833057880,-0.077303417026997,0.178254380822182,0.049662951380014,-0.068721711635590) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.076020501554012,-0.250380814075470,-0.199315831065178,0.043797828257084,0.034286793321371,-0.129714772105217,-0.107932820916176,-0.013551054522395,-0.133695393800735,0.181769400835037,0.250553756952286,-0.215566307306290,0.021576462313533,-0.184092834591866,-0.087374731898308,-0.015201126225293) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.110446631908417,0.237743839621544,-0.042999245226383,0.019413124769926,0.050607256591320,0.127853795886040,0.100795492529869,-0.006372055970132,-0.070586480200291,-0.155625730752945,0.192059263586998,-0.057560358196497,-0.087910443544388,0.170052736997604,-0.037379097193480,0.011834206990898) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.086085073649883,0.043412931263447,-0.064707368612289,-0.029427986592054,-0.387173384428024,-0.410304784774780,-0.455248653888702,-0.102197997272015,-0.010430404916406,0.115173935890198,0.086118668317795,-0.065066099166870,-0.127703547477722,0.068162575364113,-0.006590571254492,-0.043122794479132) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.148683205246925,-0.149107128381729,-0.163055986166000,-0.021310653537512,0.137504830956459,0.248627722263336,0.120636694133282,-0.018639294430614,-0.192855447530746,-0.379083156585693,-0.230035886168480,-0.003151862882078,-0.144142538309097,-0.194116309285164,-0.114078499376774,0.032840743660927) * MODEL12_texOff(vec2(0,0));
res += mat4(0.019561734050512,0.097390621900558,0.075928993523121,0.020608475431800,-0.006055435631424,-0.000713507004548,-0.048730064183474,-0.040025621652603,-0.119475759565830,-0.178453564643860,0.037884607911110,-0.007268717512488,0.012049814686179,0.007722419220954,0.098079755902290,-0.042833730578423) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.037347849458456,-0.005829670932144,0.058232389390469,0.010644390247762,-0.176151573657990,-0.137030795216560,0.146207451820374,-0.073260173201561,0.066024020314217,-0.002088537206873,0.061536476016045,-0.015945985913277,0.050494689494371,-0.045221209526062,-0.030065609142184,-0.027478702366352) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.046627726405859,0.415568649768829,-0.037172127515078,-0.023054359480739,0.048694666475058,0.013902169652283,0.137643232941628,-0.051073625683784,0.052769124507904,-0.025075051933527,0.063796147704124,-0.022934366017580,-0.228186011314392,-0.064673304557800,0.079404637217522,-0.042429585009813) * MODEL12_texOff(vec2(1,0));
res += mat4(0.054737236350775,-0.161975130438805,-0.075144000351429,-0.051964513957500,0.009974963963032,0.024008328095078,-0.015220563858747,-0.039310019463301,-0.105553485453129,-0.016128014773130,0.011297104880214,0.005893720779568,-0.110744863748550,-0.055364243686199,0.121560096740723,-0.044513572007418) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.320742607116699,0.001289505860768,-0.138502985239029,0.947567999362946) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_Medium_2x_Photo] mapping 3_4

vec4 hook()
{
vec4 res = vec4(-0.053279951214790,-0.067467518150806,0.107685044407845,-0.112762883305550);
res += mat4(-0.017378931865096,0.013280372135341,-0.056678719818592,-0.033202167600393,-0.122909247875214,-0.040387440472841,0.044321507215500,-0.058905486017466,0.004750106949359,0.028937302529812,0.016648530960083,0.003335832618177,-0.053176335990429,-0.008243521675467,0.037505328655243,0.157929316163063) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.144725948572159,0.069592908024788,0.070651799440384,-0.186993375420570,-0.307828575372696,-0.080637909471989,0.009313126094639,0.005368289072067,0.058483093976974,-0.036342289298773,-0.086867317557335,0.066207565367222,0.077522620558739,-0.079166628420353,-0.157348498702049,0.025043759495020) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.094983190298080,-0.114611878991127,0.059064630419016,-0.024817293509841,0.146843254566193,-0.062228746712208,0.032138250768185,0.061099074780941,0.222042024135590,-0.045718982815742,0.009406390599906,0.076300159096718,-0.085813485085964,0.052103351801634,-0.011615850031376,-0.031432416290045) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.007317869458348,-0.036422796547413,-0.385859668254852,0.060167457908392,0.083088420331478,0.192632272839546,-0.861513078212738,0.080822713673115,-0.003280315781012,0.021611312404275,0.212855428457260,-0.084387876093388,-0.330251455307007,0.067982099950314,0.198520213365555,-0.047851238399744) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.075063139200211,-0.103595755994320,-0.281359642744064,-0.078546918928623,-0.071248836815357,0.233846619725227,0.017362307757139,0.167389199137688,-0.243469804525375,-0.062499865889549,-0.158031657338142,-0.197185337543488,0.041825544089079,0.167467013001442,-0.140002265572548,-0.027058906853199) * MODEL7_texOff(vec2(0,0));
res += mat4(0.102404840290546,0.007983259856701,0.023307073861361,-0.062167607247829,-0.189626991748810,0.075399264693260,0.008282084949315,-0.028097929432988,0.173621445894241,-0.050290122628212,-0.055405706167221,-0.010936892591417,-0.003132470417768,0.134309947490692,-0.034963615238667,0.140440806746483) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.019111065194011,0.015927305445075,-0.247919052839279,-0.020211178809404,-0.110510148108006,-0.183472663164139,0.094807639718056,0.170273467898369,0.056168299168348,-0.005404132883996,0.137088388204575,0.097852431237698,0.052617177367210,-0.141081988811493,0.039673969149590,0.059690844267607) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.012413496151567,-0.203052476048470,0.194122955203056,0.055513687431812,-0.103569924831390,0.084663748741150,-0.015232533216476,0.004582876805216,-0.295351922512054,-0.061443939805031,0.266069352626801,0.168195113539696,0.008554593659937,0.144032210111618,-0.052749458700418,0.100669197738171) * MODEL7_texOff(vec2(1,0));
res += mat4(0.058349363505840,0.260238826274872,-0.006946122739464,-0.042504601180553,-0.047302614897490,0.139240041375160,0.037331692874432,0.018874146044254,0.121955014765263,-0.056753795593977,0.030308198183775,0.202337160706520,0.012229029089212,0.075120754539967,-0.047038506716490,-0.054441463202238) * MODEL7_texOff(vec2(1,1));
res += mat4(0.005845436826348,-0.046871419996023,-0.025629028677940,0.046878270804882,0.003097138134763,0.037051189690828,0.029044922441244,-0.068484030663967,0.013215394690633,-0.037326600402594,0.062904708087444,0.035765305161476,0.206462666392326,0.103257022798061,0.014099303632975,0.037463817745447) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.182386189699173,-0.219695985317230,0.071157015860081,0.168687567114830,0.017776630818844,0.026708958670497,-0.180090457201004,0.131412670016289,0.010875913314521,-0.118641883134842,0.008173453621566,0.109208755195141,0.177418947219849,0.107354924082756,0.062318556010723,0.082607999444008) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.119077131152153,-0.161784783005714,0.003761346917599,0.087721310555935,0.061937075108290,-0.094262801110744,-0.205716431140900,0.028674645349383,-0.238693684339523,-0.280535846948624,0.030532198026776,0.041065681725740,0.230232059955597,0.229472890496254,-0.021762605756521,-0.074784107506275) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.037235137075186,0.017992401495576,0.006230338942260,-0.162393540143967,0.083254657685757,0.031666729599237,-0.011715022847056,0.107431963086128,0.093110457062721,0.156550094485283,-0.053939428180456,0.075864292681217,0.057086549699306,-0.083377860486507,-0.179352506995201,-0.030309300869703) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.171429008245468,0.090057961642742,0.078418411314487,0.205680429935455,-0.148091644048691,-0.047899987548590,-0.150665849447250,-0.095030166208744,-0.091737866401672,0.034143809229136,-0.034658759832382,-0.084015943109989,0.051842641085386,0.078085228800774,0.016338827088475,0.041846174746752) * MODEL8_texOff(vec2(0,0));
res += mat4(0.052040655165911,0.037710823118687,0.106263749301434,-0.030560581013560,0.070394009351730,0.036063909530640,0.004334685392678,-0.094576671719551,0.029593965038657,0.247942537069321,0.067660294473171,0.048744868487120,-0.079014301300049,-0.059783622622490,0.034080930054188,-0.049392417073250) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.105628512799740,-0.064446933567524,0.080491632223129,-0.130647972226143,0.053809963166714,-0.018640922382474,0.131666764616966,0.030202731490135,-0.016313338652253,0.053163647651672,-0.045501478016376,-0.016693806275725,-0.009072412736714,-0.013528699986637,0.167309880256653,0.056533411145210) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.023551341146231,0.166811481118202,-0.011120152659714,-0.215631827712059,0.013289850205183,-0.000573221652303,0.025284752249718,0.030293149873614,0.015093262307346,0.164676457643509,0.048449940979481,0.016269261017442,0.000171199062606,0.011022528633475,-0.053423490375280,0.002440500073135) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.102922834455967,0.094873465597630,0.067205913364887,-0.070198804140091,0.032726477831602,0.165119498968124,0.005827680695802,0.088121511042118,0.051020819693804,0.049080550670624,-0.029368450865149,0.043982051312923,-0.095050379633904,-0.114118874073029,-0.109144732356071,0.054699294269085) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.017004739493132,-0.062779836356640,0.044151812791824,0.031021129339933,-0.018717475235462,0.093184262514114,0.172089964151382,-0.237506404519081,0.075483180582523,0.033847432583570,0.038400258868933,0.150265172123909,-0.003613067790866,0.084858082234859,-0.017456976696849,0.193207159638405) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.229660004377365,-0.083617419004440,-0.004671568050981,0.016968240961432,0.128337666392326,0.062404502183199,-0.029592258855700,-0.465247571468353,0.113557778298855,0.078125260770321,0.204725742340088,0.116873987019062,0.133598789572716,0.121975310146809,-0.024294620379806,0.133131399750710) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.287743806838989,-0.150206521153450,-0.024028200656176,-0.116928309202194,0.031045444309711,-0.016192192211747,-0.047583196312189,-0.166642740368843,0.143739044666290,0.112371109426022,0.079467542469501,0.244748041033745,-0.105308979749680,0.050246503204107,0.099320158362389,-0.098711892962456) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.105284228920937,-0.001367400283925,-0.114816680550575,-0.022856082767248,-0.056999884545803,-0.121778905391693,0.252778828144073,0.007231421303004,0.145554989576340,0.137722179293633,0.058177892118692,0.149597272276878,0.059374153614044,-0.162751078605652,-0.107782050967216,0.116608820855618) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.288413435220718,-0.012542891316116,-0.081501774489880,0.186215654015541,-0.091120935976505,-0.053087681531906,0.058729976415634,0.120590664446354,-0.082772225141525,0.031822476536036,0.146517127752304,0.177138119935989,-0.048743501305580,-0.142917975783348,-0.062912613153458,-0.055347058922052) * MODEL9_texOff(vec2(0,0));
res += mat4(0.211433038115501,0.157282277941704,0.053468346595764,-0.044932886958122,-0.087758429348469,0.009570240043104,-0.075120799243450,0.014465506188571,-0.002542050555348,0.025291306897998,0.040171947330236,0.000380711571779,0.139797449111938,-0.029397781938314,-0.013353039510548,0.071025229990482) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.034796506166458,0.039312936365604,0.083792358636856,-0.060828890651464,-0.098096407949924,0.022376861423254,0.106154538691044,-0.014543491415679,0.229135259985924,0.038470726460218,0.107974812388420,0.053780373185873,0.072082445025444,0.072433307766914,-0.150559708476067,-0.103364177048206) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.008764284662902,-0.048851482570171,0.029569525271654,0.007165435235947,-0.002642061328515,-0.316640824079514,0.015662049874663,0.011929730884731,0.078476272523403,0.041061572730541,0.111202836036682,0.109576441347599,0.034322164952755,-0.205917805433273,-0.021425735205412,0.102966360747814) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.197187751531601,-0.008303036913276,-0.108571633696556,0.003673803759739,-0.045060586184263,-0.176224663853645,-0.008563713170588,-0.039228443056345,-0.144907593727112,-0.142733573913574,0.031270354986191,0.039775155484676,0.001353499246761,-0.151248827576637,-0.006414417177439,0.012284266762435) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.017712496221066,0.005900566931814,0.038742467761040,-0.119077779352665,0.037398595362902,0.005982113070786,-0.123283371329308,0.090122364461422,0.008869432844222,0.035531021654606,0.082039602100849,-0.061399519443512,0.133750334382057,0.080857463181019,0.007879104465246,-0.085978634655476) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.054578512907028,-0.043060217052698,-0.096051037311554,-0.259385406970978,0.071494303643703,-0.078518815338612,-0.169550940394402,0.165981411933899,-0.276778638362885,-0.144273176789284,-0.023175546899438,-0.071754157543182,0.029430527240038,0.045464377850294,-0.043574970215559,-0.175731107592583) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.080477774143219,0.021009402349591,-0.040522970259190,-0.034211184829473,-0.033213123679161,0.030180156230927,0.059865992516279,-0.090849980711937,-0.108014024794102,-0.136462047696114,-0.036009576171637,-0.126027166843414,-0.006073713302612,-0.020931657403708,0.034041978418827,-0.131913676857948) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.118389174342155,0.107422649860382,0.078866071999073,0.013604501262307,-0.015429147519171,0.061630990356207,-0.374619603157043,-0.048423081636429,0.056817088276148,-0.101201094686985,-0.161995977163315,0.046175681054592,0.013816824182868,-0.015082601457834,-0.097686581313610,-0.045365668833256) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.260779052972794,0.203677013516426,-0.102535255253315,-0.246204301714897,-0.048676092177629,0.060673933476210,-1.030053257942200,-0.082907430827618,0.142997965216637,0.223731294274330,0.104569599032402,0.061094772070646,0.242315918207169,0.099631987512112,0.217555910348892,0.161194026470184) * MODEL10_texOff(vec2(0,0));
res += mat4(0.048298791050911,-0.087194420397282,-0.095683418214321,-0.053998362272978,0.030133781954646,0.004570981487632,-0.038075193762779,-0.029816089197993,-0.118718869984150,0.137357607483864,-0.000584423076361,-0.175917610526085,0.095742389559746,0.076794348657131,0.114637747406960,0.062103632837534) * MODEL10_texOff(vec2(0,1));
res += mat4(0.034046728163958,-0.042250182479620,-0.060031853616238,0.151335254311562,-0.023934025317430,-0.039188500493765,-0.265531837940216,0.031598009169102,-0.041851017624140,0.017136016860604,-0.133221849799156,0.053202148526907,0.008375194855034,-0.003326047910377,-0.239580422639847,0.117634423077106) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.114875152707100,-0.050385531038046,-0.023052267730236,0.208497703075409,-0.020952450111508,0.061622768640518,-0.548006713390350,-0.115864515304565,0.165260836482048,-0.120346166193485,0.061540253460407,-0.085256643593311,0.132223978638649,-0.111324712634087,-0.031723853200674,-0.022815324366093) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.102391757071018,-0.020702643319964,-0.010721911676228,0.007437458261847,0.000758067064453,-0.099090531468391,0.008714114315808,-0.049182329326868,-0.012962141074240,-0.118978284299374,0.073556467890739,0.049108639359474,0.058689381927252,-0.100803941488266,0.046115338802338,-0.000383021688322) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.026821881532669,-0.083330191671848,-0.058107484132051,-0.159057542681694,-0.017543544992805,-0.002015644917265,0.112278930842876,0.052315995097160,0.011066660284996,0.004225684795529,-0.140614941716194,0.054259542375803,0.135061219334602,-0.008300215005875,0.049624353647232,-0.290638566017151) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.206955149769783,-0.089806869626045,-0.029201723635197,-0.172261431813240,0.115677118301392,0.127317279577255,0.098469108343124,0.353447347879410,-0.215964287519455,0.158606082201004,0.289611995220184,0.093617074191570,-0.004782025702298,-0.137432307004929,-0.077420242130756,-0.139927953481674) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.206299528479576,-0.032349687069654,-0.065648183226585,0.041859202086926,0.023782262578607,0.080296896398067,-0.017718711867929,0.095444679260254,0.129228964447975,0.119640693068504,-0.015048751607537,0.023610137403011,0.057791348546743,-0.029316233471036,-0.012493229471147,-0.017743578180671) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.084458991885185,-0.049492415040731,0.025428751483560,0.025242444127798,-0.017147336155176,0.096917308866978,0.256794005632401,0.024906272068620,-0.117525674402714,-0.010460953228176,0.072140470147133,-0.007824002765119,-0.139172971248627,0.057945981621742,0.052941016852856,-0.067627951502800) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.042625341564417,0.191930428147316,-0.070815078914165,0.152065888047218,-0.230228573083878,-0.225576817989349,-0.081966921687126,-0.406595528125763,-0.053039215505123,-0.101689495146275,-0.080690003931522,-0.104933582246304,0.006068753544241,0.193531438708305,-0.045587617903948,-0.164005771279335) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.031454451382160,0.094547033309937,-0.158052161335945,0.053906194865704,-0.074711807072163,-0.188946932554245,-0.001573313260451,-0.137033194303513,-0.026139449328184,-0.240403547883034,0.027334302663803,-0.027303837239742,-0.020008470863104,-0.113730870187283,-0.107307113707066,-0.000965295941569) * MODEL11_texOff(vec2(0,1));
res += mat4(0.091366887092590,-0.042512170970440,0.160261347889900,0.016453579068184,-0.100344419479370,0.041568405926228,0.008087177760899,0.094881422817707,0.009219722822309,0.051170554012060,-0.033862054347992,-0.002291956450790,-0.007947459816933,-0.113975107669830,-0.103746756911278,-0.054567996412516) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.130782485008240,-0.063998930156231,-0.070353016257286,-0.051770389080048,-0.055116709321737,0.166541934013367,0.054874002933502,0.064389921724796,0.000833215075545,0.175334528088570,0.012831836007535,0.101816453039646,0.194146826863289,-0.075277492403984,-0.031138403341174,0.163717642426491) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.091259554028511,-0.241328343749046,-0.058178149163723,-0.041721537709236,-0.056792058050632,0.195737078785896,0.004872572608292,0.077683798968792,0.016282843425870,0.197357222437859,0.004569304175675,0.054327461868525,-0.032554730772972,-0.115047149360180,-0.090432308614254,-0.023957218974829) * MODEL11_texOff(vec2(1,1));
res += mat4(0.092200554907322,0.145307466387749,0.143299818038940,-0.054063767194748,0.111157447099686,-0.113459691405296,-0.104021601378918,-0.089728929102421,-0.125463023781776,-0.019487049430609,-0.057142470031977,-0.031536042690277,0.057692606002092,0.110247582197189,0.100175485014915,0.025040751323104) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.156097754836082,-0.098120249807835,-0.042275883257389,-0.140877291560173,0.096168510615826,0.053155772387981,-0.025046896189451,-0.013356976211071,0.501235246658325,0.113014928996563,0.107660517096519,0.161299556493759,-0.137927561998367,-0.061158318072557,-0.037429489195347,-0.196449369192123) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.417624235153198,0.057315245270729,-0.073322005569935,0.096065163612366,0.059782929718494,0.007983961142600,-0.037233814597130,-0.022785449400544,-0.136917218565941,0.109948538243771,0.070995926856995,0.146100625395775,0.210414230823517,0.069544337689877,-0.017210712656379,0.067735753953457) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.038951523602009,0.069460585713387,0.160253107547760,-0.165866404771805,-0.360133856534958,0.192833766341209,0.187282666563988,-0.253302991390228,-0.058168515563011,-0.017883541062474,0.192454308271408,-0.089114077389240,0.037391651421785,-0.078201547265053,0.146937102079391,0.079015135765076) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.028639832511544,0.046749264001846,0.082957804203033,-0.091039255261421,0.058905396610498,0.070278108119965,0.047429122030735,-0.003024904523045,-0.093048416078091,-0.206623747944832,-0.121551349759102,-0.117493174970150,0.191220566630363,0.149325102567673,0.026026582345366,-0.057871732860804) * MODEL12_texOff(vec2(0,0));
res += mat4(0.100575603544712,0.161255285143852,-0.087348267436028,-0.135923668742180,0.077389888465405,0.006898826453835,0.024613510817289,0.058374017477036,0.056489314883947,-0.132065162062645,0.016584264114499,0.005934772081673,-0.137452304363251,0.096113190054893,-0.094097875058651,0.159021183848381) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.268263846635818,0.038271505385637,-0.143127694725990,-0.028598656877875,-0.271508306264877,-0.383574575185776,0.089586362242699,0.260303407907486,-0.035724613815546,-0.138356387615204,0.156159803271294,0.006791600957513,-0.129518136382103,-0.135251417756081,0.012551584281027,0.047582354396582) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.157629162073135,-0.212437316775322,-0.026199912652373,-0.009104493074119,-0.050868369638920,-0.091831929981709,-0.016417700797319,0.049182817339897,-0.012757943011820,-0.195597127079964,0.061484590172768,-0.054387468844652,-0.071555227041245,-0.430260121822357,-0.043769303709269,0.107125259935856) * MODEL12_texOff(vec2(1,0));
res += mat4(0.178886786103249,-0.099565237760544,0.089954741299152,0.086935020983219,0.003677079686895,0.008742177858949,0.007726874202490,0.049766477197409,0.016508843749762,-0.070351429283619,-0.047808349132538,-0.053416315466166,0.016097340732813,-0.258458554744720,-0.094101540744305,0.065125562250614) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.103494681417942,-0.119826659560204,-0.017379093915224,-0.083621352910995) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_Medium_2x_Photo] mapping 3_5

vec4 hook()
{
vec4 res = vec4(0.038624178618193,-0.018022099509835,-0.158822610974312,-0.048257041722536);
res += mat4(0.002520932815969,-0.076666384935379,0.066022999584675,-0.046343371272087,0.070702522993088,0.030727433040738,-0.048835266381502,-0.066429875791073,0.059757851064205,0.130525216460228,0.043075930327177,0.058327566832304,0.005103899165988,0.166543483734131,0.094609327614307,-0.143233552575111) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.098564095795155,-0.028128098696470,-0.056290868669748,-0.083657085895538,-0.050890292972326,0.148736283183098,0.058233361691236,-0.067037269473076,0.056883726269007,-0.081786088645458,0.036538418382406,0.053900018334389,0.026409735903144,0.158073410391808,0.017958136275411,-0.022534308955073) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.003624503267929,0.033266779035330,-0.021606501191854,-0.217812955379486,-0.020207567140460,-0.036811951547861,0.132693395018578,0.070674873888493,0.079215280711651,0.021748114377260,0.106537759304047,0.015506801195443,0.053074944764376,0.089163638651371,-0.129685103893280,0.066206187009811) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.046676229685545,0.045205958187580,-0.091954149305820,0.086571633815765,-0.057512957602739,0.339337021112442,-0.118747428059578,-0.059004083275795,0.052359081804752,-0.035393439233303,0.150559902191162,0.060291543602943,0.121582135558128,-0.058791689574718,-0.022942557930946,-0.234943822026253) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.066081151366234,0.107407450675964,-0.225313618779182,-0.121644780039787,-0.015635291114450,0.071245297789574,-0.214729160070419,-0.062634661793709,0.031417600810528,0.056840099394321,0.015606957487762,0.048764541745186,0.055488981306553,0.016473865136504,-0.180853694677353,0.064452931284904) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.017987476661801,0.121999323368073,0.048264130949974,0.007576613686979,0.055818956345320,-0.139346480369568,0.117068849503994,-0.057665340602398,-0.026351144537330,0.011203988455236,0.109144985675812,0.023743117228150,-0.032458193600178,0.038582056760788,0.012899085879326,0.035110026597977) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.007781176827848,0.025359267368913,-0.087082274258137,0.035568151623011,-0.178359493613243,0.047357339411974,-0.040937863290310,0.009719368070364,-0.042799130082130,0.050064649432898,0.053021900355816,0.049244485795498,-0.024802101776004,0.026591788977385,0.005483997054398,-0.102069497108459) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.016790235415101,0.120989568531513,0.041247371584177,0.055665750056505,-0.010719387792051,-0.056091342121363,-0.095971763134003,-0.054011944681406,-0.020327989012003,-0.103597946465015,0.149584040045738,-0.120876006782055,-0.081623390316963,-0.047090034931898,0.191280230879784,-0.129473507404327) * MODEL7_texOff(vec2(1,0));
res += mat4(0.000101504017948,-0.063511975109577,-0.014754508621991,0.139062553644180,0.043618220835924,0.033446136862040,0.045752834528685,-0.104511722922325,-0.120057798922062,0.027936581522226,0.003680869471282,-0.047953486442566,0.065812513232231,0.041024655103683,-0.055354300886393,-0.024003243073821) * MODEL7_texOff(vec2(1,1));
res += mat4(0.004404949489981,0.157802104949951,-0.044286213815212,0.055395431816578,0.112736441195011,0.049531038850546,0.069388628005981,0.017663629725575,0.066992461681366,-0.083272166550159,-0.055350378155708,-0.011128805577755,-0.042880471795797,-0.013349994085729,0.039155624806881,0.074215918779373) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.101087354123592,-0.181846067309380,0.182318165898323,-0.173153191804886,0.180615186691284,-0.001225333428010,-0.091571755707264,0.034852914512157,-0.113414399325848,0.245139479637146,-0.016800433397293,-0.121070258319378,0.103384882211685,0.057771719992161,0.223301112651825,0.029451549053192) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.042024832218885,0.133059427142143,0.100571468472481,0.103654049336910,0.172655194997787,0.105462111532688,0.127272367477417,0.011392522603273,-0.135318160057068,0.065988443791866,0.110615715384483,-0.055007293820381,-0.064586609601974,-0.143768578767776,-0.026487629860640,0.050492979586124) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.013077007606626,0.171999558806419,-0.190037593245506,-0.007165596820414,-0.049100782722235,-0.181939065456390,0.123425066471100,-0.009644314646721,0.040743391960859,-0.014747812412679,-0.005908797029406,-0.036367364227772,0.028030345216393,0.162384465336800,0.049465917050838,0.072775363922119) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.066410176455975,0.045926596969366,0.127820804715157,-0.033688690513372,0.016925772652030,0.123327240347862,-0.145658999681473,-0.001426097820513,-0.033321786671877,0.185300230979919,-0.142546266317368,0.115155413746834,0.068316631019115,-0.047356475144625,0.176719337701797,-0.067365072667599) * MODEL8_texOff(vec2(0,0));
res += mat4(0.035912223160267,-0.063087739050388,0.194624304771423,-0.036718271672726,0.087681233882904,0.005985791794956,0.159632921218872,0.182887941598892,-0.051662094891071,0.149019405245781,-0.121496468782425,0.056469090282917,0.046961296349764,-0.098841711878777,0.261439621448517,-0.267545819282532) * MODEL8_texOff(vec2(0,1));
res += mat4(0.037728890776634,-0.075748249888420,-0.012003992684186,0.112811081111431,0.014468861743808,0.120452605187893,0.017150010913610,-0.074882708489895,0.025691067799926,0.067371815443039,0.022184390574694,-0.029280431568623,0.023981332778931,-0.035473283380270,0.148357182741165,0.070785373449326) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.276892066001892,-0.187036365270615,-0.024654807522893,0.243311032652855,-0.049753945320845,0.334096193313599,-0.023627148941159,0.019632050767541,0.080396704375744,-0.026952700689435,0.148589536547661,-0.048438258469105,0.012410358525813,-0.045042283833027,0.189548328518867,0.074709065258503) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.048774711787701,0.106709502637386,0.028149330988526,0.014510987326503,-0.076014794409275,0.124983437359333,0.152796581387520,0.061362985521555,0.003460096893832,0.132097899913788,-0.092884138226509,0.048657957464457,0.087538897991180,-0.053114656358957,0.030851110816002,-0.049867272377014) * MODEL8_texOff(vec2(1,1));
res += mat4(0.018591159954667,-0.018700603395700,-0.034537889063358,-0.029014384374022,-0.014815974980593,-0.137837603688240,-0.027101539075375,0.088807418942451,-0.053319949656725,0.004782204516232,0.006896683014929,0.140393391251564,-0.044858336448669,-0.120748654007912,0.079407706856728,-0.007628708612174) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.044016834348440,-0.005277973134071,0.046996124088764,-0.102265775203705,0.010069124400616,0.121735744178295,-0.152672007679939,-0.185769245028496,-0.065830722451210,0.102604627609253,-0.064849369227886,0.000431024993304,-0.044093750417233,-0.264636754989624,-0.098844423890114,0.128516033291817) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.032269954681396,-0.016055690124631,0.243918716907501,0.031980536878109,-0.024822300300002,-0.011797811836004,0.045522455126047,0.004183499608189,-0.031689006835222,-0.121321558952332,-0.016302170231938,0.031969040632248,-0.039940942078829,0.043436653912067,-0.017916291952133,-0.090878032147884) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.042379397898912,-0.030555021017790,-0.020653937011957,-0.147166773676872,0.139497041702271,0.074634566903114,-0.067374818027020,-0.011392568238080,-0.072716474533081,-0.043001599609852,-0.125277489423752,0.091329261660576,0.030263246968389,-0.154296427965164,-0.143788784742355,0.008742199279368) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.018475482240319,0.053587727248669,-0.288050711154938,0.263986408710480,0.154980599880219,-0.299550443887711,0.047718375921249,-0.016844108700752,-0.139865785837173,0.126112639904022,0.125813931226730,-0.138168334960938,0.002742652548477,-0.017820321023464,-0.003244532970712,-0.067928552627563) * MODEL9_texOff(vec2(0,0));
res += mat4(0.012143951840699,-0.116250701248646,0.120893448591232,0.047995358705521,0.054869428277016,-0.091286055743694,0.013824106194079,-0.063190877437592,-0.064212866127491,-0.170151278376579,-0.027250740677118,-0.000117347044579,-0.100568532943726,0.279943048954010,-0.139864593744278,0.099579207599163) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.045961152762175,-0.101751141250134,0.032440617680550,-0.004186439793557,0.108362689614296,-0.045813381671906,-0.105032891035080,0.025791114196181,0.024526420980692,-0.002104347338900,-0.006845490075648,-0.054879229515791,0.103566825389862,-0.008018288761377,0.007358444388956,0.050632711499929) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.090035915374756,-0.078478768467903,0.126119524240494,-0.009278142824769,0.066772490739822,-0.140319198369980,0.020041991025209,-0.052767585963011,-0.074722453951836,0.056574482470751,-0.066892057657242,-0.078808553516865,-0.105738140642643,0.136430278420448,0.014253642410040,-0.003449583426118) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.053009189665318,-0.240268692374229,0.175940230488777,-0.102656997740269,0.033829621970654,-0.020163586363196,-0.038842663168907,0.040234591811895,-0.044414203613997,-0.086571708321571,-0.039653487503529,-0.058599937707186,-0.104699954390526,-0.027305908501148,-0.044409468770027,0.105788722634315) * MODEL9_texOff(vec2(1,1));
res += mat4(0.001513379509561,0.011937014758587,0.061044815927744,0.009418575093150,0.014589434489608,0.011683701537549,-0.060724556446075,0.003995185252279,-0.026998661458492,-0.032646168023348,-0.012521680444479,-0.059719257056713,-0.007750932127237,-0.058127503842115,-0.047544624656439,0.071535013616085) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.042622786015272,-0.063352636992931,-0.012660135515034,-0.125915825366974,-0.103730916976929,0.072496250271797,0.000791155791376,0.090160988271236,0.050665616989136,0.044817537069321,0.004924182314426,-0.058304205536842,-0.120916910469532,0.156328529119492,-0.007886141538620,0.056021265685558) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.029734183102846,0.074337840080261,-0.005206854548305,0.016878403723240,-0.034720331430435,0.011445325799286,0.152172431349754,0.151412442326546,0.112273529171944,-0.093960724771023,0.026782495900989,0.016526563093066,-0.041350275278091,0.009758224710822,-0.061223637312651,0.017161119729280) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.045290626585484,-0.078075058758259,0.033523287624121,0.171990588307381,0.020833613350987,-0.110723838210106,-0.002334255026653,-0.106352306902409,0.012253030203283,0.056215282529593,-0.090569362044334,-0.002999796066433,-0.107885055243969,0.068763352930546,-0.083268858492374,0.122784994542599) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.129796028137207,-0.383255958557129,0.323948085308075,0.002527296775952,-0.095179170370102,0.174051046371460,-0.155242308974266,0.143413454294205,-0.048947788774967,-0.050390150398016,-0.115532681345940,0.041434377431870,0.043196514248848,0.230995267629623,-0.180887475609779,-0.121406145393848) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.104068025946617,0.142546176910400,-0.074030064046383,0.003335605142638,-0.018054274842143,0.156588315963745,-0.016037963330746,-0.144708886742592,0.064942039549351,-0.134259894490242,-0.032591067254543,-0.005966953933239,-0.072645053267479,0.119028732180595,-0.057875812053680,-0.009527292102575) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.067502841353416,0.088618248701096,0.000833500351291,-0.130183905363083,0.017461389303207,0.031265083700418,-0.025253839790821,-0.041225135326385,-0.027072479948401,0.068668395280838,-0.020166156813502,0.055665288120508,-0.093919634819031,0.134115070104599,-0.140105277299881,0.019131416454911) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.295167684555054,0.278040438890457,-0.087764501571655,-0.381030976772308,-0.027752798050642,-0.005963771604002,-0.195443660020828,-0.054140940308571,0.014348061755300,-0.043943271040916,0.072006851434708,-0.084830880165100,0.055432092398405,-0.032938752323389,-0.089003726840019,0.083075866103172) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.018068686127663,-0.018239837139845,0.047064423561096,-0.133862555027008,0.035712070763111,-0.013502327725291,-0.006573283113539,-0.024436037987471,-0.027853852137923,0.163155496120453,-0.006232947576791,-0.056420542299747,-0.047560166567564,-0.068019494414330,-0.124135486781597,-0.000684638565872) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.019845716655254,-0.178333461284637,0.110017642378807,0.075115643441677,0.042622879147530,-0.028238127008080,-0.042257327586412,0.029026538133621,0.054783113300800,0.119302868843079,-0.223619282245636,0.128830641508102,-0.038904376327991,-0.180238410830498,0.328461676836014,-0.057306647300720) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.021503439173102,-0.112641282379627,0.127576604485512,-0.079916439950466,-0.070959076285362,-0.151976063847542,-0.019245333969593,0.279038965702057,0.027910038828850,-0.373608618974686,0.203403487801552,-0.084493972361088,-0.029467986896634,0.016166580840945,0.252323746681213,-0.091611415147781) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.045079480856657,-0.028298864141107,-0.116147272288799,0.054298695176840,-0.086404033005238,-0.042142260819674,-0.009026342071593,0.154657989740372,-0.093794994056225,-0.058886919170618,-0.078663818538189,0.072765864431858,0.048387188464403,-0.062128111720085,0.083942808210850,0.029184052720666) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.139286190271378,0.155708000063896,0.152537316083908,0.241460487246513,0.073898009955883,-0.151462823152542,-0.154531896114349,-0.140603527426720,-0.044615648686886,-0.071640565991402,-0.055495165288448,-0.029176997020841,0.021548833698034,-0.291511803865433,0.106751672923565,0.149890676140785) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.124055765569210,0.118918873369694,-0.055750619620085,-0.117538645863533,0.509708225727081,0.087499782443047,0.173178508877754,-0.001731950207613,-0.123159326612949,-0.046687703579664,0.259808927774429,-0.070830114185810,-0.014678256586194,-0.095861382782459,0.075716055929661,-0.014270381070673) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.056938506662846,-0.251235634088516,0.167894542217255,-0.021318174898624,-0.056000821292400,0.091172955930233,-0.019668137654662,-0.087152630090714,-0.159921392798424,0.001075160107575,0.051364146173000,-0.031103163957596,-0.020970318466425,-0.220793545246124,0.128514170646667,0.047050304710865) * MODEL11_texOff(vec2(0,1));
res += mat4(0.024954603984952,-0.158819004893303,0.155884712934494,-0.061030197888613,-0.179746791720390,-0.063655905425549,-0.068489462137222,-0.176829621195793,-0.033628206700087,-0.009333970956504,-0.049112834036350,0.042366795241833,0.142979919910431,-0.104391314089298,0.133774399757385,-0.047758381813765) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.027326852083206,-0.197623029351234,0.070195347070694,0.036713458597660,-0.062814325094223,0.061874501407146,0.058411948382854,-0.198898747563362,-0.094247400760651,0.033566437661648,-0.056799296289682,-0.020390635356307,-0.086560256779194,0.103701829910278,-0.051953855901957,-0.162844806909561) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.019822858273983,-0.086469665169716,0.122165024280548,-0.149453386664391,0.031021947041154,-0.057843592017889,0.047140404582024,-0.168664410710335,-0.064480938017368,0.021352332085371,-0.005345594603568,0.022381123155355,-0.028261026367545,-0.167085871100426,0.171400070190430,-0.085410512983799) * MODEL11_texOff(vec2(1,1));
res += mat4(0.143516391515732,0.071820959448814,-0.019467903301120,0.049345605075359,-0.078143499791622,-0.039795581251383,0.044684514403343,-0.063160523772240,0.026383077725768,0.018864637240767,0.053600680083036,0.111824631690979,0.073235712945461,-0.029323216527700,-0.001433516852558,0.022921286523342) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.011422868818045,0.017675660550594,-0.012211034074426,-0.164056137204170,0.009886728599668,0.068057343363762,0.069595344364643,0.072225533425808,0.007516845129430,-0.083784237504005,-0.014123132452369,0.164738744497299,0.020582981407642,0.116950459778309,-0.094573251903057,-0.000953545211814) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.014752878807485,-0.029823664575815,0.121011979877949,0.165851920843124,-0.046826053410769,-0.014656033366919,0.091533921658993,-0.069856047630310,-0.045683592557907,0.002382739912719,-0.139372602105141,0.045938845723867,0.082885786890984,-0.097295068204403,-0.041806239634752,-0.040807388722897) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.037172291427851,-0.093367241322994,0.034304048866034,0.016575504094362,0.094833560287952,-0.440820336341858,0.011666090227664,0.048935189843178,-0.042239379137754,-0.160754710435867,0.108391642570496,0.162404000759125,0.080722257494926,0.003312630811706,0.063131839036942,0.087557025253773) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.023390665650368,-0.209952950477600,-0.018140075728297,0.103091053664684,-0.159336686134338,-0.010675018653274,0.055563993752003,0.059913534671068,-0.139761775732040,-0.169434443116188,-0.020388776436448,-0.011020439676940,0.036610595881939,-0.174946784973145,-0.132983744144440,0.017197487875819) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.169442027807236,-0.059597752988338,0.059435874223709,0.030417801812291,0.036719772964716,0.056953001767397,-0.131874337792397,0.044394433498383,-0.094019532203674,0.173664003610611,-0.118837051093578,0.153811350464821,0.050200138241053,0.058735456317663,-0.073382176458836,0.051020763814449) * MODEL12_texOff(vec2(0,1));
res += mat4(0.004492791835219,-0.025227116420865,-0.037024650722742,0.057267144322395,-0.038166798651218,0.005121228750795,0.182481989264488,-0.102493748068810,0.000889760907739,-0.078225433826447,0.119760721921921,0.068469196557999,0.053187597543001,0.100517548620701,0.063429601490498,0.156423836946487) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.120680429041386,-0.092033326625824,-0.123505085706711,-0.058062404394150,0.014649847522378,0.039359118789434,0.003302052849904,-0.078503288328648,0.093568339943886,0.009586505591869,0.083936169743538,0.016883458942175,0.087821245193481,-0.249304801225662,0.131043270230293,-0.086591005325317) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.004129186738282,0.154603376984596,-0.059115074574947,0.021289393305779,-0.001030620886013,-0.021571343764663,0.039168834686279,-0.004124705214053,-0.066594488918781,0.090755015611649,-0.042928595095873,0.062652386724949,-0.049068484455347,0.097196698188782,-0.152923241257668,0.011494724079967) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.855911552906036,-0.112613737583160,-0.019006336107850,0.706688463687897) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_Medium_2x_Photo] mapping 3_6

vec4 hook()
{
vec4 res = vec4(0.110326826572418,-0.110823906958103,-0.148259416222572,-0.027089646086097);
res += mat4(-0.124903216958046,0.014607072807848,-0.031825546175241,-0.161054641008377,-0.031914822757244,0.009215794503689,0.133540630340576,0.242218658328056,-0.013247784227133,0.063560627400875,0.010619356296957,-0.058714933693409,0.245927751064301,0.222307920455933,0.230644971132278,-0.219983443617821) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.002546354196966,-0.083988480269909,0.111723102629185,-0.003587586572394,0.012610598467290,0.045563291758299,0.091969788074493,0.010745376348495,0.064229838550091,-0.060614835470915,-0.015479073859751,0.115993902087212,0.064907103776932,0.067981049418449,-0.115518920123577,-0.144958183169365) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.032932821661234,0.002368439687416,0.013163068331778,0.122347958385944,0.020410915836692,0.094917513430119,0.117846295237541,-0.153890967369080,0.038357216864824,-0.024220278486609,-0.045157458633184,-0.069177366793156,0.014147726818919,0.028050744906068,0.114853397011757,0.003585477592424) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.353030353784561,-0.011570369824767,-0.007139927707613,0.055933199822903,0.005812123417854,0.138538047671318,0.106966055929661,0.227640539407730,0.025082632899284,0.177672266960144,-0.105302885174751,0.103880487382412,0.352869004011154,-0.017907410860062,0.060886599123478,-0.266362935304642) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.685509324073792,0.197052612900734,0.031567290425301,0.164772644639015,0.069464743137360,-0.030151577666402,-0.006227592006326,0.193124309182167,0.104255408048630,-0.158231556415558,0.058490335941315,-0.232171386480331,0.047033503651619,-0.019906330853701,0.146742045879364,0.102161608636379) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.055977884680033,0.005529268179089,0.167691975831985,0.034355144947767,0.107884183526039,0.105796299874783,0.143107116222382,-0.152615010738373,-0.011741028167307,-0.174763858318329,-0.124075770378113,-0.054006438702345,0.063921831548214,-0.011338829062879,0.173787444829941,0.034780990332365) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.212713390588760,-0.005501214414835,0.127672657370567,-0.016584983095527,0.168546497821808,0.095335237681866,0.000406263105106,-0.045572075992823,0.090427748858929,0.215451568365097,-0.016987875103951,0.255998432636261,-0.149926707148552,-0.071206316351891,0.042041592299938,0.120541490614414) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.297605127096176,-0.000337295175996,0.066295482218266,-0.040115367621183,-0.053225003182888,0.008038989268243,0.095327191054821,0.017231056466699,0.022723503410816,-0.055098697543144,-0.177491784095764,-0.115366123616695,0.116800419986248,-0.048125918954611,-0.167380303144455,-0.200341537594795) * MODEL7_texOff(vec2(1,0));
res += mat4(0.096063382923603,0.016492692753673,0.082143746316433,-0.054319366812706,0.094425842165947,0.078592255711555,0.208053797483444,0.020963959395885,0.048795111477375,-0.092957481741905,-0.132591456174850,-0.061136297881603,-0.131117209792137,-0.025178981944919,0.127799287438393,-0.096650026738644) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.021773152053356,0.128296718001366,0.003353322623298,0.109274409711361,-0.049044206738472,0.008592869155109,-0.021144807338715,-0.227969020605087,-0.088845007121563,0.048364549875259,-0.074685722589493,-0.073003508150578,0.060917794704437,-0.032497268170118,0.088814385235310,0.266164243221283) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.010966613888741,0.141245245933533,-0.135309979319572,-0.048408284783363,-0.078009039163589,-0.004031074699014,-0.116007730364799,0.078076735138893,-0.113866597414017,-0.013035846874118,-0.028147676959634,-0.054417692124844,-0.026202186942101,0.120619453489780,-0.000605033827014,-0.216542169451714) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.177703201770782,0.165243491530418,-0.059421841055155,-0.102090008556843,-0.015362119302154,0.020135620608926,-0.063031613826752,-0.126501575112343,0.044000491499901,0.122856639325619,-0.014135075733066,-0.086562842130661,-0.158315092325211,0.069112613797188,-0.107067324221134,-0.254553854465485) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.036710649728775,-0.028860716149211,0.152196988463402,0.056196227669716,-0.021614719182253,-0.089100718498230,0.019057644531131,-0.153071448206902,0.032587498426437,0.041831515729427,-0.001554513815790,0.061121705919504,-0.031714837998152,0.076546013355255,0.152258917689323,0.125130757689476) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.073461562395096,-0.192998901009560,0.164718523621559,-0.001108975731768,0.065018288791180,0.050643499940634,0.186813205480576,-0.001545479637571,0.068604946136475,0.221243217587471,-0.091828063130379,-0.239104643464088,-0.065795719623566,0.016506385058165,0.029349206015468,0.152463063597679) * MODEL8_texOff(vec2(0,0));
res += mat4(0.095176301896572,0.087657384574413,-0.109309181571007,-0.001827404950745,0.116692632436752,0.003528131172061,0.094509795308113,-0.232450097799301,0.065480247139931,0.052961751818657,-0.051942996680737,0.055581625550985,0.079277552664280,0.167438745498657,-0.005293353460729,-0.136878669261932) * MODEL8_texOff(vec2(0,1));
res += mat4(0.188371375203133,0.025656243786216,-0.041672885417938,-0.031098756939173,-0.113413885235786,-0.066327944397926,0.071700587868690,-0.216129928827286,-0.078999459743500,0.042428936809301,0.056719470769167,0.005518441554159,0.119041211903095,0.173921734094620,0.012486759573221,-0.061411950737238) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.011684809811413,-0.085851527750492,0.049684476107359,-0.102012559771538,0.102352678775787,0.153242856264114,0.082885809242725,-0.053900342434645,-0.009158579632640,0.018411742523313,-0.029552534222603,-0.076855570077896,-0.122038081288338,-0.114947028458118,0.072805471718311,0.030657595023513) * MODEL8_texOff(vec2(1,0));
res += mat4(0.026987308636308,0.019843420013785,-0.064500950276852,0.082603104412556,0.042517136782408,0.102584682404995,0.086598604917526,-0.261829793453217,-0.025828152894974,0.067142628133297,-0.119881995022297,-0.032105166465044,-0.173318490386009,-0.186633646488190,0.077037177979946,0.061412155628204) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.096735157072544,-0.019138151779771,0.005154041107744,0.013682280667126,0.116974085569382,0.053613997995853,-0.062064792960882,-0.004814662504941,0.007560959551483,-0.017122769728303,0.038728259503841,-0.019508697092533,0.023897955194116,-0.174754574894905,-0.048399105668068,-0.238867655396461) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.029376029968262,-0.066933400928974,0.006246556062251,0.041912559419870,0.014845006167889,0.189121067523956,-0.091919384896755,-0.377766430377960,0.084478728473186,0.051660895347595,0.060832936316729,-0.001078655943274,0.044115275144577,-0.089950688183308,0.054214388132095,0.051074679940939) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.093793675303459,0.075261473655701,-0.028713556006551,-0.144713252782822,-0.001208526198752,-0.010798015631735,-0.067215830087662,-0.094681099057198,0.118727281689644,-0.127239972352982,0.063345514237881,0.045127321034670,0.006920367479324,-0.059229057282209,0.056326389312744,0.111352294683456) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.112896114587784,-0.097183361649513,-0.085686370730400,-0.007978768087924,0.058524295687675,0.247776776552200,0.092269025743008,0.099742934107780,0.226499691605568,0.024966841563582,0.064943216741085,-0.042854223400354,-0.232416003942490,-0.121221862733364,0.009311500005424,-0.141315981745720) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.070693366229534,-0.038454100489616,-0.002460015006363,-0.016979604959488,0.113737091422081,-0.320031076669693,-0.434808880090714,-0.180027663707733,0.124621801078320,0.161215096712112,0.004180070478469,0.057592283934355,-0.065389230847359,0.026031816378236,0.325975149869919,-0.282638698816299) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.040415722876787,-0.256631761789322,-0.031124891713262,-0.114707000553608,-0.035997845232487,-0.097936116158962,0.076699428260326,-0.201622292399406,0.171900451183319,-0.107862479984760,-0.002549016149715,-0.173295304179192,-0.111822530627251,0.029941571876407,-0.000076095500845,0.194218590855598) * MODEL9_texOff(vec2(0,1));
res += mat4(0.082200817763805,-0.058201774954796,-0.050421278923750,-0.046513665467501,0.142911985516548,0.093309015035629,-0.008592572063208,-0.076879210770130,0.151031151413918,0.002478734822944,0.053581763058901,0.128503635525703,-0.028425287455320,-0.037960439920425,0.009703308343887,-0.002270780736580) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.021307704970241,-0.095702558755875,-0.067018486559391,-0.127268895506859,-0.087536461651325,-0.069923780858517,-0.031596809625626,-0.012101098895073,0.118248879909515,0.035030882805586,-0.087165594100952,-0.059496000409126,0.020677419379354,-0.012506294064224,0.007531615905464,0.067803025245667) * MODEL9_texOff(vec2(1,0));
res += mat4(0.019895497709513,0.132230773568153,-0.239389210939407,-0.184405297040939,-0.008223302662373,0.080908589065075,0.026400497183204,-0.038947641849518,0.314529418945313,0.143819004297256,0.106426827609539,-0.094931572675705,0.007340437732637,-0.009023022837937,-0.124539129436016,-0.001575953909196) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.006077521014959,0.019204828888178,0.058026663959026,0.026718297973275,-0.176353499293327,-0.028581615537405,-0.009562384337187,0.024385292083025,0.055155456066132,-0.075199536979198,0.046275451779366,0.114720314741135,-0.052252557128668,0.037977505475283,0.064705111086369,-0.007863705977798) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.014752635732293,0.041602212935686,0.005551190115511,-0.161999657750130,-0.398802846670151,0.067045994102955,-0.044185079634190,0.066800199449062,0.229763552546501,0.034194346517324,0.092209935188293,-0.228499546647072,0.006233577150851,0.127211958169937,0.072732798755169,0.028560150414705) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.117576755583286,-0.099108755588531,-0.112439014017582,0.096757903695107,-0.055071350187063,-0.046877693384886,0.020550642162561,-0.058057773858309,0.159735038876534,0.102246515452862,-0.175914540886879,-0.077195674180984,0.028638953343034,0.059077858924866,0.086501978337765,-0.026007575914264) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.007985073141754,-0.042351309210062,0.110267549753189,-0.166306883096695,-0.317098677158356,-0.177900582551956,0.080346003174782,-0.106073364615440,-0.083423428237438,0.003628246486187,-0.029873562976718,0.083319373428822,-0.079437017440796,0.077793546020985,0.184171006083488,0.132980868220329) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.018113948404789,-0.254819542169571,-0.165395915508270,-0.103046186268330,-0.509624958038330,-0.292596399784088,0.132029086351395,0.250450253486633,-0.032963290810585,-0.003201670944691,-0.046617779880762,0.269719034433365,0.015491473488510,0.211714953184128,0.092759191989899,0.121084086596966) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.167992740869522,-0.144619360566139,-0.060497730970383,0.107551872730255,-0.120631001889706,0.241522207856178,-0.054370880126953,0.150197044014931,-0.153171449899673,-0.104681089520454,-0.052123263478279,-0.161823198199272,0.007717175409198,0.022279258817434,0.156145155429840,0.091774135828018) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.193785876035690,0.004613359458745,-0.014887416735291,0.042677275836468,-0.206505313515663,-0.032482482492924,-0.021854136139154,-0.045172393321991,0.066178768873215,0.012452699244022,0.054690599441528,-0.085024312138557,-0.019373262301087,0.120634101331234,0.106878168880939,-0.051219858229160) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.040887493640184,0.233414813876152,-0.049581848084927,0.027865415439010,-0.441026091575623,0.089175224304199,0.034682910889387,-0.005311187822372,0.061238009482622,-0.052957788109779,0.086240641772747,0.109300442039967,0.038289409130812,-0.015201983042061,0.119395345449448,-0.017997000366449) * MODEL10_texOff(vec2(1,0));
res += mat4(0.037176378071308,-0.041956551373005,0.056113339960575,-0.119230240583420,-0.018236830830574,-0.041953779757023,0.053306721150875,-0.014779425226152,-0.016589699313045,0.057113800197840,-0.151521980762482,0.016697203740478,0.047128211706877,0.025100328028202,0.217304900288582,0.306879162788391) * MODEL10_texOff(vec2(1,1));
res += mat4(0.036424081772566,0.137425631284714,-0.065154045820236,0.199680179357529,0.025785060599446,0.027281245216727,-0.016378911212087,-0.145299166440964,0.006899994332343,-0.000148457475007,0.127429217100143,-0.043676182627678,-0.015749411657453,-0.126168578863144,-0.062308222055435,-0.053007140755653) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.029772305861115,0.018085608258843,0.001285959966481,-0.057837221771479,0.024540875107050,-0.129943802952766,0.123059332370758,0.106299757957458,0.128079295158386,0.077967524528503,-0.203660950064659,0.106494903564453,0.126709446310997,0.060864984989166,-0.052912112325430,-0.038900252431631) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.014785440638661,0.011277353391051,-0.007003065664321,0.201524555683136,-0.017441589385271,0.010659652762115,0.070272266864777,0.117542415857315,0.057475659996271,-0.240614548325539,-0.163853868842125,0.060950767248869,0.015497160144150,-0.060101673007011,-0.150251448154449,0.143025740981102) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.149627462029457,-0.111974120140076,0.173752352595329,-0.110226266086102,0.047995720058680,0.034761972725391,-0.077314011752605,-0.025850476697087,0.031688645482063,-0.038044553250074,-0.057621922343969,-0.045073512941599,0.032796196639538,-0.147755503654480,-0.086772680282593,-0.055297054350376) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.056566737592220,0.003870399668813,-0.036617178469896,-0.061675429344177,-0.044399976730347,-0.217072635889053,0.461076587438583,-0.178264603018761,0.111481413245201,-0.009540564380586,-0.034772127866745,0.257614135742188,-0.119711168110371,-0.095192551612854,-0.081832736730576,0.041377559304237) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.026310691609979,-0.213944122195244,0.039177983999252,-0.189867064356804,-0.055931329727173,0.038299329578876,0.000943365565035,-0.025574767962098,0.001291654887609,-0.033904273062944,0.081131733953953,0.066617883741856,0.000852835131809,-0.093603305518627,0.085594899952412,0.000573753146455) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.061894688755274,0.013136873021722,0.040339674800634,0.003658222034574,-0.162900328636169,0.063151992857456,-0.017205176874995,0.054180663079023,-0.027667324990034,0.045230366289616,0.014715849421918,0.033258490264416,0.013535176403821,-0.121727742254734,-0.020060917362571,0.061198133975267) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.225363239645958,-0.046848468482494,0.017994893714786,0.072086371481419,0.094166375696659,0.162546455860138,-0.042028404772282,0.010312228463590,0.036351602524519,0.059272829443216,-0.030696900561452,0.010650879703462,-0.005110512953252,0.039378244429827,-0.049870550632477,0.132175356149673) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.047326505184174,-0.082165040075779,-0.065992496907711,0.004890308249742,0.111317314207554,0.058805491775274,0.091807797551155,-0.111879408359528,0.107925690710545,0.032787244766951,0.012532322667539,-0.002507242839783,0.047198109328747,-0.088879868388176,0.052054941654205,0.000748697144445) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.043224655091763,0.199820443987846,0.116241477429867,-0.167020633816719,-0.052226021885872,0.106701903045177,0.058786518871784,-0.070751152932644,0.026434274390340,0.012642888352275,0.043979644775391,-0.046908810734749,0.017448460683227,0.078126519918442,0.047870684415102,-0.052271030843258) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.003625069046393,0.170291170477867,-0.123666837811470,0.085281528532505,0.071902021765709,0.100371353328228,0.017704401165247,0.127053275704384,-0.003096824279055,-0.124874666333199,0.108833424746990,0.243036374449730,-0.013527146540582,0.079663082957268,0.002195874229074,-0.015609787777066) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.038601197302341,0.028550503775477,-0.058013994246721,-0.046604413539171,0.040548022836447,-0.018467916175723,-0.003764048218727,-0.017631929367781,-0.037289474159479,-0.023075476288795,0.136610254645348,0.047049209475517,-0.021479953080416,0.034717988222837,-0.048359930515289,-0.106935016810894) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.011850546114147,0.220113173127174,-0.024957487359643,0.118126325309277,0.142734467983246,0.002113925293088,-0.336933374404907,-0.272487610578537,0.025826558470726,0.247673898935318,0.206966206431389,0.001860226388089,0.114088341593742,0.059421423822641,0.098313659429550,0.163131758570671) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.042799476534128,-0.237692385911942,-0.033779129385948,-0.064675286412239,-0.073649339377880,0.055209815502167,-0.028568560257554,-0.076011538505554,0.035584170371294,0.132438793778419,-0.063295081257820,-0.214254230260849,-0.045506689697504,0.161470055580139,-0.175973534584045,-0.138291537761688) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.123307541012764,-0.091909885406494,0.056413598358631,0.061437577009201,-0.042241025716066,0.061833713203669,0.021403290331364,0.123084492981434,-0.059735994786024,-0.058443330228329,0.013550172559917,0.157496109604836,-0.001454446348362,-0.185792550444603,0.063936851918697,0.049829792231321) * MODEL12_texOff(vec2(0,1));
res += mat4(0.002815302461386,0.041832197457552,-0.111406400799751,0.013845494017005,0.014785765670240,-0.100786060094833,-0.042028814554214,0.039751037955284,0.094062894582748,-0.029647314921021,0.045197766274214,0.066475898027420,-0.046468812972307,0.081421062350273,0.027181910350919,-0.027373824268579) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.134586602449417,-0.169833913445473,0.129410773515701,0.107701689004898,-0.054791741073132,-0.001228125765920,0.184923321008682,0.076576396822929,0.047610074281693,-0.047115292400122,0.030250292271376,-0.072881169617176,0.084689870476723,-0.234088644385338,-0.036926895380020,-0.117660529911518) * MODEL12_texOff(vec2(1,0));
res += mat4(0.032696444541216,-0.152146250009537,0.125644162297249,0.111431129276752,-0.051506627351046,-0.013805963099003,0.022486459463835,0.015530762262642,-0.049900066107512,0.033434007316828,0.080573476850986,0.053430303931236,-0.151701837778091,-0.071219071745872,0.038657400757074,0.133885085582733) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.092774003744125,0.177412837743759,0.009694738313556,-0.218327179551125) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_Medium_2x_Photo] mapping 4_1

vec4 hook()
{
vec4 res = vec4(0.042127378284931,-0.152702987194061,-0.039767678827047,-0.051223471760750);
res += mat4(-0.005652817431837,0.013643074780703,-0.062837027013302,-0.054896093904972,0.014384763315320,-0.016604628413916,-0.011677356436849,0.132109433412552,0.016062844544649,-0.013074337504804,-0.097564570605755,-0.021170811727643,0.009100132621825,0.004831621423364,0.003015863941982,-0.139753416180611) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.019345054402947,-0.192404434084892,0.014305187389255,-0.211421951651573,-0.126649275422096,0.042385414242744,0.091017164289951,0.058584500104189,0.013428369536996,-0.067222744226456,0.083078749477863,0.130008146166801,0.049490462988615,0.151124864816666,-0.079142406582832,0.227156683802605) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.029183885082603,0.132094532251358,0.087992824614048,-0.048466797918081,0.018176907673478,0.084983192384243,-0.030138883739710,-0.055114936083555,0.011237715370953,-0.030821416527033,-0.029866479337215,0.022334007546306,0.007951577194035,-0.103926010429859,-0.004237182904035,-0.249272555112839) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.003329466329888,-0.073342569172382,-0.008415564894676,-0.066120654344559,-0.066707551479340,-0.027800224721432,-0.013209824450314,-0.068504922091961,-0.049800895154476,-0.071226924657822,-0.049552898854017,-0.032151002436876,-0.039568461477757,-0.069384053349495,0.025144621729851,-0.063644327223301) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.062781803309917,-0.116159215569496,0.073317386209965,-0.101719692349434,0.000699818367139,0.168371364474297,-0.053255438804626,0.053860500454903,0.064022354781628,0.182927995920181,-0.078086331486702,-0.068426966667175,0.120900198817253,-0.128784924745560,0.125243902206421,0.159788772463799) * MODEL1_texOff(vec2(0,0));
res += mat4(0.010440342128277,-0.073116295039654,0.047899078577757,-0.151283398270607,-0.036664828658104,-0.109921142458916,-0.049261942505836,-0.020901495590806,-0.023312851786613,-0.222594767808914,-0.091411828994751,0.112207472324371,-0.024691212922335,0.084953062236309,-0.020195839926600,-0.117370009422302) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.010652156546712,0.050873614847660,-0.037946619093418,-0.035001453012228,0.022504260763526,0.084436133503914,-0.012660321779549,-0.012518718838692,-0.005174836609513,0.100586704909801,-0.002902076113969,0.060783170163631,0.009119119495153,0.012083221226931,-0.089050054550171,-0.101007536053658) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.007594555616379,0.073928885161877,-0.100614987313747,-0.005764503031969,0.037528108805418,-0.253146290779114,-0.113637566566467,-0.037263032048941,0.043191187083721,-0.132215753197670,0.026459226384759,0.004443304147571,-0.023133805021644,-0.046496629714966,-0.023606406524777,0.119182698428631) * MODEL1_texOff(vec2(1,0));
res += mat4(0.016326813027263,-0.037367850542068,0.064264461398125,0.195158660411835,-0.004928102716804,0.150611162185669,-0.091081038117409,0.075544685125351,0.009960819967091,0.135991483926773,-0.066305711865425,0.036260027438402,-0.040901668369770,-0.042448569089174,0.031879346817732,-0.087755106389523) * MODEL1_texOff(vec2(1,1));
res += mat4(0.115907087922096,-0.026788715273142,-0.017908530309796,-0.013953185640275,-0.046640515327454,0.030211795121431,0.071769587695599,-0.055352013558149,-0.076046898961067,0.098247684538364,-0.053465280681849,0.072046987712383,-0.007210948038846,-0.012019438669086,-0.010284117422998,0.022263988852501) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.067476525902748,-0.027377378195524,-0.058182701468468,0.011437471024692,0.033090170472860,-0.044223833829165,0.143596008419991,0.095782808959484,-0.008736385963857,-0.002045411383733,-0.020852416753769,-0.080289945006371,0.032598502933979,0.010105855762959,-0.028894202783704,0.072192415595055) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.031346052885056,-0.044418118894100,0.081229083240032,0.214009478688240,-0.002521095098928,-0.097572751343250,0.059679426252842,-0.074528910219669,-0.021273072808981,-0.012953543104231,-0.052403241395950,0.116903230547905,-0.025156911462545,-0.197041273117065,0.009410041384399,0.082419842481613) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.048038665205240,0.041833441704512,-0.021737599745393,-0.014998984523118,0.059398058801889,0.130783259868622,0.005367415957153,-0.052231270819902,0.156697109341621,0.051480073481798,-0.116751708090305,0.128948688507080,-0.012383403256536,-0.041106231510639,0.082136288285255,-0.004994059447199) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.030928833410144,-0.140324577689171,0.101381130516529,-0.072859585285187,0.023340182378888,-0.189560055732727,0.043028999119997,-0.044740762561560,-0.010028474964201,-0.035331986844540,-0.111649900674820,-0.110005252063274,-0.049506571143866,-0.086736753582954,-0.029594680294394,0.017615213990211) * MODEL2_texOff(vec2(0,0));
res += mat4(0.091399967670441,0.156530693173409,-0.138598367571831,-0.008816268295050,0.052308570593596,0.127516865730286,-0.050704233348370,-0.071806907653809,0.039174765348434,0.056000269949436,0.017658950760961,0.121628642082214,-0.041470777243376,0.264574319124222,-0.059508521109819,0.178592219948769) * MODEL2_texOff(vec2(0,1));
res += mat4(0.003476976649836,0.017000135034323,-0.089881159365177,-0.042183663696051,-0.028617259114981,0.005405850708485,-0.012996523641050,0.124335348606110,-0.065483659505844,-0.058979738503695,-0.104425847530365,-0.082785479724407,0.057328268885612,-0.056082583963871,0.043134313076735,0.002612942829728) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.197733968496323,0.028267793357372,0.062832511961460,-0.010637704282999,0.010486871935427,0.028668636456132,0.021519890055060,0.111392743885517,-0.061642527580261,-0.021470613777637,0.003367367899045,0.020761733874679,-0.029020747169852,0.059307012706995,0.091378264129162,-0.058743637055159) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.002866815775633,0.057170301675797,-0.013241635635495,-0.079887196421623,-0.011281135492027,-0.043083962053061,0.086034968495369,-0.077841266989708,-0.125195771455765,0.054248876869678,-0.025213027372956,-0.037048757076263,0.009319928474724,-0.107841327786446,-0.011579088866711,0.021508816629648) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.005216400139034,0.025596719235182,-0.033900745213032,-0.123909540474415,0.017161568626761,-0.039355445653200,0.000974987691734,-0.035975839942694,0.070930205285549,-0.168728396296501,0.034915927797556,-0.056447520852089,0.034577056765556,0.028125029057264,-0.035254746675491,0.017516838386655) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.021458251401782,0.106179624795914,0.014116603881121,-0.221062049269676,0.002920384984463,-0.022859400138259,-0.026013651862741,0.006998783908784,-0.074270546436310,-0.006051927804947,0.136268854141235,-0.026341395452619,0.166888087987900,-0.012131078168750,-0.153538227081299,-0.219202250242233) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.006787135265768,0.092620559036732,-0.049945570528507,-0.099359728395939,-0.013055703602731,-0.068818911910057,0.026637159287930,0.124595940113068,-0.015839954838157,-0.087620988488197,0.074120499193668,-0.003028522711247,-0.055646453052759,-0.067618772387505,-0.002577674575150,-0.001747274654917) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.026858318597078,0.076380625367165,-0.044576983898878,0.066892325878143,-0.004897198174149,0.025393281131983,0.070968292653561,-0.153263926506042,-0.030785851180553,-0.026068350300193,0.121300131082535,-0.066799722611904,0.140762180089951,-0.106540076434612,0.105665944516659,-0.041263237595558) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.022374993190169,0.095209173858166,-0.007810842711478,-0.202987074851990,0.009868537075818,-0.143494158983231,0.055999819189310,0.119312576949596,0.001353914733045,0.020427267998457,0.146049350500107,-0.017451053485274,-0.566166281700134,0.246239110827446,0.356044679880142,0.042883928865194) * MODEL3_texOff(vec2(0,0));
res += mat4(0.022443899884820,0.065042309463024,-0.060028426349163,0.103391148149967,0.039658002555370,-0.148691549897194,-0.140492781996727,-0.077340900897980,-0.097935356199741,-0.061884809285402,0.014485533349216,-0.076148137450218,0.196860432624817,0.039435219019651,-0.140496268868446,0.075109250843525) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.012893046252429,-0.054629664868116,-0.119938477873802,0.045049663633108,-0.004056432750076,-0.024354938417673,-0.086261086165905,0.169026345014572,0.020964341238141,-0.070181280374527,0.097072087228298,-0.022060474380851,-0.017962886020541,-0.055960144847631,0.123705722391605,-0.194115415215492) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.047682754695415,0.072994180023670,-0.044988293200731,-0.236045405268669,0.048928193747997,-0.061728611588478,-0.000190197446500,0.016137864440680,0.074084140360355,-0.079150527715683,-0.007479208521545,0.002248572651297,0.333584040403366,-0.130993902683258,-0.067818857729435,0.008232207037508) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.001679804292507,0.019988315179944,-0.125624656677246,0.011391866952181,-0.021792162209749,-0.000153217173647,-0.018704069778323,-0.055110644549131,-0.089400671422482,-0.005695004481822,0.054842263460159,-0.022642932832241,0.038533717393875,-0.016447557136416,-0.121785625815392,-0.085335165262222) * MODEL3_texOff(vec2(1,1));
res += mat4(0.028802378103137,0.088602751493454,0.005592048633844,-0.008356448262930,-0.003261384088546,-0.146540030837059,0.002379706595093,-0.161679476499557,0.007262835279107,-0.126342549920082,0.021695816889405,-0.303486526012421,-0.035277511924505,-0.012576604261994,0.012974340468645,0.094293646514416) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.090531736612320,0.091196298599243,0.101733729243279,0.104199774563313,0.023963717743754,0.098227553069592,0.083240993320942,-0.074229158461094,-0.009260144084692,0.121351763606071,-0.003157918341458,-0.115351438522339,0.039534490555525,-0.023653648793697,-0.041818015277386,-0.034897994250059) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.036931775510311,0.098967999219894,0.047015901654959,0.033971711993217,-0.035763703286648,-0.083685405552387,0.048093389719725,-0.109895855188370,0.013521924614906,-0.014462471939623,0.003298283321783,-0.048260621726513,-0.025122568011284,-0.119093425571918,-0.015008827671409,-0.021621663123369) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.041793975979090,-0.051264490932226,0.003499289974570,-0.004930973052979,-0.044304586946964,0.135386645793915,0.068856395781040,0.119242541491985,-0.021059600636363,0.225426360964775,-0.059473868459463,0.169650360941887,0.066846773028374,0.055663522332907,0.057133685797453,-0.134424567222595) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.049818329513073,0.344231754541397,0.028009997680783,-0.013258836232126,0.046332176774740,-0.001103793270886,0.054190780967474,-0.179698690772057,-0.051184784621000,0.033051196485758,0.078240893781185,0.033343277871609,0.035217430442572,-0.076184332370758,-0.029158180579543,0.120761156082153) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.083363033831120,0.109059579670429,0.076983720064163,0.131452351808548,0.014983841218054,-0.101390868425369,-0.010738628916442,0.041433129459620,0.017963940277696,-0.029218656942248,-0.016746725887060,-0.131613343954086,0.072817936539650,0.002666206564754,-0.027061630040407,-0.170551940798759) * MODEL4_texOff(vec2(0,1));
res += mat4(0.077245712280273,0.075562767684460,0.053855251520872,0.018799502402544,0.034260377287865,-0.025009222328663,-0.029277283698320,-0.118196204304695,-0.004457241855562,-0.049221318215132,-0.107193678617477,0.086021609604359,-0.028859648853540,0.010988005436957,0.080948524177074,-0.101073220372200) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.015667237341404,-0.093554824590683,0.063575223088264,0.106962099671364,0.111968226730824,-0.008398357778788,-0.018704567104578,0.063604287803173,0.023258343338966,0.126272395253181,0.035260498523712,-0.052960198372602,-0.133504316210747,-0.041753660887480,0.094223447144032,-0.070494346320629) * MODEL4_texOff(vec2(1,0));
res += mat4(0.040274098515511,0.093450427055359,-0.107032082974911,-0.050191543996334,0.043834123760462,-0.024425959214568,0.048583887517452,-0.040421593934298,0.048568651080132,0.013060918077826,0.035606410354376,-0.022644368931651,-0.098826617002487,0.062343996018171,0.015363493002951,-0.073960870504379) * MODEL4_texOff(vec2(1,1));
res += mat4(0.021505583077669,0.068145439028740,0.075799778103828,0.263423740863800,-0.058815818279982,0.030189394950867,0.068101666867733,0.105343215167522,0.057427208870649,0.047295544296503,-0.021735692396760,-0.096914246678352,0.133996948599815,0.093349762260914,-0.135984629392624,-0.049218028783798) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.078000269830227,0.065243892371655,0.078219607472420,-0.027071516960859,0.011626151390374,-0.085684642195702,0.000650757923722,0.090961948037148,-0.016891123726964,-0.146163210272789,0.038918890058994,-0.122186981141567,0.050050463527441,-0.078724257647991,-0.027820484712720,0.081153757870197) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.016319584101439,-0.015583580359817,0.031198749318719,0.278977811336517,0.010482523590326,-0.017581451684237,0.058984324336052,0.037616562098265,-0.001098814653233,0.076012752950191,-0.010203511454165,-0.171610802412033,0.065477810800076,0.052869617938995,-0.002304970053956,0.267429769039154) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.056063849478960,-0.009166152216494,0.000334168260451,-0.004842461552471,0.031257137656212,-0.052534081041813,0.007284495048225,0.163979247212410,0.003812595270574,-0.032379020005465,-0.029058456420898,-0.128801614046097,-0.028414798900485,-0.052981078624725,-0.123371593654156,0.043364088982344) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.119750089943409,0.164679974317551,-0.147801235318184,0.006127106957138,-0.028239630162716,-0.043825387954712,0.187039449810982,0.194248721003532,-0.038872361183167,0.107390187680721,-0.199322775006294,-0.211025029420853,-0.091555811464787,0.078205682337284,-0.025139475241303,0.003059055190533) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.131234228610992,-0.024919498711824,0.054733972996473,-0.073965013027191,0.033433280885220,-0.045878291130066,0.135114729404449,0.093407534062862,0.001353982603177,-0.102865703403950,0.072869241237640,0.110225483775139,-0.016412852331996,-0.184918090701103,0.033399563282728,0.178759381175041) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.046589560806751,0.002068764297292,0.147434130311012,-0.198674783110619,-0.017628163099289,-0.019786478951573,0.148072883486748,0.046737946569920,0.009111482650042,0.004731884691864,0.092847578227520,-0.023885721340775,-0.005882180761546,0.035924192517996,0.048758503049612,0.092221364378929) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.231560871005058,-0.031710173934698,-0.121055923402309,0.160455003380775,-0.083150759339333,0.000452938227681,0.153188705444336,0.151198863983154,-0.040229082107544,-0.073391683399677,-0.038611277937889,-0.103195711970329,-0.072472237050533,-0.093667358160019,-0.002754617948085,0.124550350010395) * MODEL5_texOff(vec2(1,0));
res += mat4(0.049377191811800,0.061198774725199,0.082062117755413,-0.012418560683727,0.032716702669859,-0.094474434852600,0.099481068551540,0.136716067790985,-0.001080458052456,0.040931578725576,-0.018761545419693,0.031596671789885,-0.020775964483619,-0.055714037269354,0.060166716575623,0.054739922285080) * MODEL5_texOff(vec2(1,1));
res += mat4(0.033828724175692,-0.010277994908392,0.040845803916454,0.027938099578023,-0.043933708220720,0.160933375358582,0.001749268150888,0.084333010017872,0.004288681317121,-0.014218382537365,-0.108913764357567,-0.034264430403709,-0.017360733821988,0.046272266656160,-0.068473428487778,-0.075632043182850) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.080324828624725,-0.217334628105164,-0.042239788919687,-0.029017943888903,0.003842477453873,0.058588642627001,-0.032016754150391,0.025019451975822,-0.039431378245354,-0.051180377602577,0.069260679185390,0.031070783734322,-0.012021275237203,0.108665131032467,-0.067199617624283,-0.171588882803917) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.074451886117458,0.014776566997170,-0.025864290073514,-0.114072091877460,-0.013437945395708,-0.013313156552613,0.024328349158168,0.074896380305290,0.026523204520345,0.105628848075867,-0.018297087401152,-0.060217984020710,0.046006981283426,-0.070083364844322,-0.084970854222775,-0.152450352907181) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.028850506991148,-0.021400436758995,-0.131228104233742,-0.090810514986515,-0.039835568517447,-0.006868144031614,0.010313960723579,-0.127332031726837,0.037804689258337,0.146181225776672,0.083075337111950,0.099394492805004,0.016428058966994,-0.025290312245488,-0.037073329091072,-0.043420389294624) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.001281064469367,0.019866159185767,-0.040790710598230,-0.232014924287796,0.100502394139767,-0.054279860109091,-0.120047785341740,-0.192978024482727,-0.047557566314936,0.044288035482168,0.029167875647545,0.034989517182112,-0.001676132436842,0.219193115830421,-0.081545822322369,-0.031222596764565) * MODEL6_texOff(vec2(0,0));
res += mat4(0.000679727236275,-0.216278985142708,0.032242447137833,-0.069968566298485,0.023870855569839,-0.108361586928368,-0.150397390127182,-0.020489469170570,-0.060683134943247,-0.050381563603878,0.061791677027941,-0.042534690350294,-0.041500024497509,0.190696775913239,-0.010406753979623,-0.185764104127884) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.018635865300894,0.083330355584621,-0.035120874643326,-0.071767084300518,-0.009308204986155,0.045777570456266,0.030330628156662,-0.064927406609058,-0.025074277073145,-0.042643532156944,0.015330540016294,0.036188520491123,0.011073587462306,0.023301353678107,-0.022112825885415,-0.262037187814713) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.007501087151468,-0.087694056332111,-0.036695588380098,-0.113605029881001,0.007881493307650,-0.033456586301327,-0.097433730959892,-0.021874126046896,0.010181518271565,0.110146686434746,-0.125388354063034,0.025756563991308,-0.038352798670530,0.060899592936039,-0.092176198959351,-0.034665342420340) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.004099940415472,-0.010598023422062,-0.039385247975588,-0.128029003739357,0.082884408533573,0.028991963714361,-0.021686876192689,-0.051910005509853,-0.028557760640979,-0.017097754403949,0.023283749818802,0.084052480757236,-0.014605122618377,0.105769991874695,0.011389261111617,-0.104859814047813) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(1.009303569793701,0.015816826373339,-0.504857063293457,-0.080159284174442) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_Medium_2x_Photo] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.171696096658707,-0.121744439005852,-0.028810918331146,-0.084293000400066);
res += mat4(0.024379689246416,0.037476267665625,0.005080515053123,-0.077298536896706,-0.015051940456033,-0.028065241873264,-0.017407523468137,-0.005828215274960,0.014571542851627,0.171350717544556,0.001275761984289,0.037709828466177,-0.004970652051270,0.050470650196075,0.095022939145565,0.098957777023315) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.026333324611187,-0.020420469343662,0.064060434699059,0.019602505490184,-0.041761416941881,-0.054407361894846,-0.009519907645881,-0.016544425860047,0.149524807929993,-0.147174403071404,-0.010256644338369,-0.042859490960836,0.182432383298874,0.046042617410421,-0.085475459694862,0.053748123347759) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.107783891260624,0.118450477719307,0.000147588565596,0.154782712459564,-0.039156433194876,0.018374947831035,0.036668736487627,0.055144764482975,-0.068555861711502,0.154745087027550,-0.003615424968302,0.064717724919319,0.086283043026924,0.084798865020275,0.031307909637690,0.052859548479319) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.035658728331327,-0.223088622093201,-0.011586373671889,0.005414928309619,-0.068813517689705,0.016995370388031,0.016866501420736,0.024155359715223,-0.103125222027302,0.088025830686092,-0.055588513612747,-0.023841710761189,-0.022371592000127,0.043854009360075,0.151822745800018,0.100864507257938) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.136946290731430,-0.238807067275047,0.038786463439465,-0.170577168464661,-0.017127996310592,-0.068460337817669,-0.076617963612080,-0.007025730796158,0.102573528885841,-0.070142321288586,0.026839900761843,0.084296785295010,0.078958123922348,0.154857665300369,-0.189982518553734,-0.060339614748955) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.078031770884991,0.265608161687851,0.080941036343575,0.203517973423004,0.016912497580051,0.086745761334896,0.039508443325758,0.099323697388172,0.017451869323850,0.057597350329161,0.001350411796011,0.058843918144703,0.219745889306068,0.029508953914046,-0.035006243735552,0.016032161191106) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.021490246057510,0.041436564177275,-0.097543708980083,0.065062187612057,0.053293574601412,-0.058696471154690,-0.103715896606445,-0.020958445966244,0.104693830013275,-0.001988324103877,-0.060000479221344,0.023974310606718,-0.110308945178986,0.078812494874001,0.057327732443810,0.004996862728149) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.128280699253082,-0.212983846664429,0.133600905537605,0.060183040797710,-0.166713908314705,-0.157247424125671,-0.045182555913925,0.005568186752498,-0.043181937187910,0.081269189715385,-0.008359774947166,0.045298419892788,0.105776093900204,0.001107087824494,-0.007057101000100,-0.205411955714226) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.048355221748352,0.154443919658661,0.025825250893831,0.116372048854828,-0.097482897341251,-0.005814640317112,-0.011042090132833,0.055919386446476,-0.019100613892078,-0.013193198479712,-0.006732014473528,0.096083872020245,0.000038404345105,-0.085450045764446,-0.029885940253735,0.041200328618288) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.093062825500965,0.054729055613279,-0.034361369907856,-0.028857881203294,0.153157189488411,-0.154577225446701,0.128273382782936,0.005911847110838,0.022991968318820,-0.034050080925226,-0.009642163291574,-0.023847555741668,-0.024575663730502,-0.022443588823080,0.054999534040689,0.040859870612621) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.052363291382790,-0.126464098691940,0.117995895445347,0.137349382042885,-0.175471007823944,0.135755166411400,0.055634256452322,0.088527224957943,-0.084727078676224,-0.119043357670307,-0.019884081557393,0.063797608017921,0.039182052016258,0.103974528610706,-0.059569168835878,0.069428101181984) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.007040752563626,-0.001044227275997,0.020761428400874,-0.024105073884130,0.113696403801441,0.080225974321365,-0.057638190686703,-0.045922070741653,0.004556618630886,0.025416526943445,-0.003565165912732,-0.034934505820274,0.027230305597186,-0.012485548853874,-0.000053253967053,-0.039276480674744) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.100197002291679,0.007140579167753,0.034141056239605,-0.067596174776554,0.067664049565792,-0.037150505930185,0.141420781612396,-0.052550494670868,-0.000175688634044,-0.064349249005318,-0.113662511110306,-0.076960451900959,-0.177660003304482,0.226047471165657,0.069902516901493,0.265853762626648) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.140984281897545,0.149594113230705,-0.003231140086427,0.147636026144028,-0.209870502352715,0.105955936014652,0.147059112787247,0.158967703580856,-0.197796806693077,0.000663519778755,0.065007485449314,0.060847781598568,0.159027248620987,-0.062040403485298,-0.087304502725601,0.016490392386913) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.145085796713829,-0.112749345600605,0.016977487131953,0.007968482561409,0.114610835909843,0.343791991472244,-0.186573922634125,-0.071233518421650,-0.160676091909409,0.011787048541009,-0.047129757702351,-0.001021028961986,0.136947289109230,-0.124195180833340,-0.023700017482042,-0.022275751456618) * MODEL2_texOff(vec2(0,1));
res += mat4(0.006678097881377,0.154276698827744,-0.016443779692054,0.022371444851160,0.068770192563534,-0.119439318776131,0.177922308444977,0.026802387088537,-0.131429046392441,0.160548433661461,-0.056207317858934,-0.069918371737003,-0.124982267618179,0.110513381659985,0.051862154155970,0.108489848673344) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.151158854365349,-0.035658024251461,0.033839393407106,0.043282523751259,0.054545227438211,0.078205496072769,-0.020196892321110,0.088776484131813,-0.043177369982004,-0.209457874298096,-0.031580075621605,-0.009893396869302,0.209388613700867,-0.064411982893944,-0.188128396868706,0.057799737900496) * MODEL2_texOff(vec2(1,0));
res += mat4(0.078122198581696,-0.184435606002808,-0.004929365590215,0.084397889673710,0.157601565122604,0.171027615666389,-0.099156193435192,-0.033907819539309,0.050419874489307,-0.201794400811195,-0.017197124660015,-0.003008204279467,0.099681526422501,0.096011601388454,-0.122474886476994,0.015252468176186) * MODEL2_texOff(vec2(1,1));
res += mat4(0.000065826410719,0.022071972489357,-0.026020061224699,-0.042628768831491,0.063819773495197,-0.167221277952194,-0.023260993883014,0.014430584385991,0.032793976366520,0.039854902774096,-0.025122277438641,-0.030421223491430,-0.029072875156999,0.055764909833670,-0.005896227899939,0.079186722636223) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.059061147272587,0.001274751033634,-0.043877672404051,-0.077532880008221,0.007281281519681,0.114373482763767,-0.006567288655788,0.142568811774254,-0.114248424768448,-0.102769225835800,-0.018671208992600,0.030896322801709,0.209348380565643,0.114039033651352,-0.015177275054157,0.091215677559376) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.108550056815147,-0.021459676325321,0.001922545023263,-0.035284183919430,0.019143704324961,-0.011765069328249,-0.062800668179989,-0.047538243234158,-0.044607143849134,-0.060247793793678,0.020636852830648,-0.024402853101492,0.030614424496889,0.050095137208700,0.010007866658270,-0.055343475192785) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.142252564430237,-0.149868756532669,-0.006521130446345,-0.086874477565289,0.250365346670151,-0.028076045215130,0.194781035184860,-0.067942768335342,0.072919599711895,-0.045210544019938,0.099004983901978,-0.063567638397217,-0.092080160975456,0.179286956787109,-0.077115766704082,0.064127638936043) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.002437916118652,0.322113841772079,-0.020103376358747,0.018166691064835,0.059537339955568,0.296493351459503,-0.022804565727711,0.172937378287315,-0.200507894158363,0.058081556111574,-0.007113740779459,-0.008283773437142,0.300134062767029,-0.186239287257195,0.182651489973068,0.060292750597000) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.121251672506332,0.095328778028488,-0.002470536855981,-0.151019588112831,-0.183534711599350,0.155564427375793,-0.018498130142689,-0.164145544171333,-0.103220872581005,-0.070074699819088,-0.048822399228811,-0.098934628069401,-0.134915426373482,0.214523673057556,-0.045062068849802,-0.059128656983376) * MODEL3_texOff(vec2(0,1));
res += mat4(0.036498535424471,-0.012381051667035,0.135348603129387,-0.099306069314480,0.106128498911858,-0.228530257940292,0.299781441688538,-0.023646509274840,0.009411637671292,-0.106881730258465,0.055201210081577,-0.053493052721024,-0.027427891269326,-0.016888739541173,-0.112980313599110,0.000972198904492) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.029220506548882,0.104056455194950,0.018709860742092,0.062846481800079,-0.035161301493645,0.146691292524338,-0.167615801095963,0.060217365622520,-0.057018578052521,-0.003836790332571,0.002794340718538,-0.123130716383457,0.024034598842263,-0.076900832355022,0.120600320398808,-0.080727331340313) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.077099710702896,-0.001200950238854,-0.039668887853622,-0.146257147192955,0.053934656083584,-0.003774583805352,-0.029378116130829,-0.012395952828228,-0.022994073107839,-0.014346172101796,-0.011534717865288,-0.008853842504323,0.006206676363945,0.026162035763264,-0.007619790267199,-0.063376247882843) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.025098579004407,0.112255223095417,0.004893422592431,0.078868754208088,-0.045842371881008,0.143960267305374,0.001311579020694,0.038960937410593,0.161905512213707,0.010298621840775,0.031791929155588,-0.105907708406448,0.056456796824932,-0.070542283356190,0.021328825503588,-0.039407044649124) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.011621528305113,0.009656545706093,0.044299624860287,0.090818367898464,0.070148415863514,-0.286081284284592,0.006886465009302,0.000475827255286,0.033553130924702,-0.057414513081312,0.011045620776713,-0.037285972386599,-0.018262419849634,0.053927622735500,0.047887094318867,-0.030306931585073) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.053698461502790,-0.040908019989729,-0.008094348944724,-0.000745054043364,-0.046443253755569,0.092567004263401,-0.024457715451717,-0.052763268351555,-0.054040089249611,0.050231333822012,-0.001576400245540,0.021003006026149,0.103073269128799,0.098657555878162,0.004312266595662,0.086831264197826) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.044933479279280,0.173157408833504,0.201288923621178,0.185554996132851,0.091386020183563,-0.076350606977940,0.080551974475384,-0.109362043440342,0.311067909002304,-0.267858445644379,-0.016254771500826,-0.233511179685593,0.001581733580679,0.074558585882187,-0.044743467122316,0.074285909533501) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.150518462061882,-0.118017241358757,-0.143012717366219,0.018562454730272,0.030541883781552,0.129252180457115,-0.064148269593716,0.056056737899780,0.131741032004356,-0.014283642172813,-0.027799893170595,-0.004532930441201,-0.153800174593925,-0.060042392462492,0.060148529708385,0.055725350975990) * MODEL4_texOff(vec2(0,0));
res += mat4(0.093503825366497,0.148702144622803,0.013812237419188,-0.033226933330297,0.132832288742065,0.021811740472913,0.000270511140116,0.010912369005382,-0.242149814963341,-0.040212869644165,-0.035886049270630,0.009918746538460,0.050774112343788,-0.057058233767748,-0.013245217502117,0.065948739647865) * MODEL4_texOff(vec2(0,1));
res += mat4(0.119372799992561,0.061734706163406,0.041443005204201,-0.020352620631456,0.031989481300116,-0.009840294718742,-0.042409744113684,0.001347508630715,0.272497177124023,-0.038808755576611,0.008642158471048,-0.047914840281010,0.056700132787228,-0.120909191668034,0.079769693315029,0.080880194902420) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.063875526189804,-0.064877822995186,0.032914724200964,0.092643581330776,0.040353160351515,-0.023789247497916,-0.000177723151864,-0.021467609331012,-0.068033814430237,0.127070441842079,-0.099008910357952,0.047037903219461,0.012112852185965,0.059425942599773,-0.063612200319767,-0.011866772547364) * MODEL4_texOff(vec2(1,0));
res += mat4(0.061682663857937,0.071702525019646,-0.032044637948275,-0.053987577557564,0.025157675147057,-0.036088857799768,0.014224885031581,0.092953316867352,-0.060967992991209,-0.008480357937515,0.022563003003597,0.010888789780438,0.064962416887283,-0.013444119133055,0.011421403847635,-0.004835027735680) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.031142964959145,-0.047254670411348,0.062014937400818,0.010317149572074,0.035982243716717,-0.093797788023949,0.057035379111767,-0.042941689491272,-0.078192181885242,0.071275845170021,-0.109487280249596,-0.089418806135654,-0.027320435270667,0.078959219157696,0.017144145444036,0.043444450944662) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.057414911687374,-0.011274956166744,0.019774673506618,-0.016276778653264,-0.075874455273151,-0.151088744401932,-0.007790469564497,-0.050453871488571,-0.045064136385918,-0.007532231509686,0.005557627882808,-0.093687646090984,0.245139360427856,-0.033655155450106,-0.081021182239056,-0.075130999088287) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.083047524094582,-0.054552443325520,-0.029319699853659,0.057541970163584,-0.010524887591600,-0.051329024136066,-0.034531891345978,-0.068716026842594,0.032051868736744,0.016368366777897,-0.000627499131951,0.021258734166622,0.026561452075839,0.110965400934219,0.005248870700598,0.010173323564231) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.123384051024914,0.229500934481621,-0.051325075328350,0.060622014105320,-0.022056702524424,0.075154699385166,-0.070713415741920,0.167672708630562,-0.138069227337837,0.147385329008102,-0.088578604161739,-0.011788379400969,0.015161608345807,0.027200482785702,0.007498309016228,-0.056449007242918) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.109280332922935,-0.108731403946877,-0.014927438460290,0.086885295808315,0.236072927713394,-0.114178985357285,-0.141002446413040,-0.108295559883118,0.221544221043587,-0.365057051181793,0.080328747630119,0.012566518969834,0.098445184528828,0.096705973148346,-0.092062883079052,-0.131854712963104) * MODEL5_texOff(vec2(0,0));
res += mat4(0.030519811436534,-0.124278172850609,0.028696967288852,0.012208089232445,0.130019336938858,0.020080639049411,0.047054532915354,-0.028881408274174,0.117130853235722,-0.201974332332611,0.032181810587645,-0.050611961632967,-0.101922541856766,0.113056652247906,0.024032860994339,0.082196742296219) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.150464102625847,0.117893382906914,-0.175810515880585,0.139971032738686,-0.111463300883770,0.012557088397443,-0.040624313056469,0.096907027065754,-0.091131702065468,0.026492245495319,-0.202537417411804,0.002115326467901,-0.090051747858524,0.008635595440865,-0.062015604227781,0.062450215220451) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.043584436178207,-0.009449237026274,0.102760158479214,-0.051258977502584,-0.041841123253107,-0.116913102567196,-0.056371044367552,-0.014546790160239,0.106091909110546,0.006597674451768,0.062332838773727,-0.075532443821430,0.104783847928047,-0.036967780441046,-0.058091428130865,-0.083627305924892) * MODEL5_texOff(vec2(1,0));
res += mat4(0.005124524235725,-0.139139518141747,-0.031917396932840,0.055520836263895,-0.044193655252457,-0.051001008599997,0.029736438766122,-0.034021619707346,0.008974950760603,-0.086142599582672,0.024907439947128,0.008693614974618,-0.188142865896225,-0.029358047991991,0.062812700867653,0.086841799318790) * MODEL5_texOff(vec2(1,1));
res += mat4(0.102562122046947,0.281870573759079,0.007430913392454,-0.068984366953373,-0.045901205390692,0.056117359548807,0.004178384784609,-0.020851718261838,-0.030314883217216,0.047029159963131,0.006025127135217,-0.019111940637231,-0.129657179117203,-0.032492540776730,0.030959047377110,0.030370354652405) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.003743515117094,-0.055290624499321,0.092631481587887,-0.111734993755817,0.052224788814783,-0.010422779247165,-0.032191060483456,0.040317647159100,0.007058542221785,0.037043582648039,-0.146511152386665,-0.127329006791115,0.014929108321667,-0.012217670679092,-0.096705116331577,0.010525791905820) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.010319551452994,0.032641381025314,0.019861219450831,0.009792099706829,-0.062927193939686,0.014211703091860,-0.057553391903639,0.036507707089186,-0.084395490586758,-0.052616484463215,0.045404203236103,0.063336789608002,-0.028024759143591,0.045343339443207,0.014481967315078,0.000668505963404) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.028842167928815,0.359178274869919,-0.162525013089180,-0.216372624039650,-0.112090423703194,0.018631935119629,0.094664826989174,-0.209895491600037,0.080801300704479,-0.146506577730179,-0.098713763058186,0.103451453149319,-0.156634360551834,0.007047617807984,-0.019753752276301,0.036112505942583) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.132902339100838,-0.294112145900726,-0.114029362797737,-0.075296826660633,-0.029435658827424,0.117255821824074,-0.025437841191888,0.056414414197206,0.162195503711700,0.156985431909561,-0.165610834956169,-0.394072622060776,0.256218254566193,-0.023727666586637,-0.085892245173454,-0.098944365978241) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.111342325806618,-0.224155798554420,0.110786087810993,-0.110749892890453,-0.160848706960678,0.056727454066277,-0.004885355941951,0.053587902337313,0.024744832888246,0.060567747801542,0.077137812972069,0.061896361410618,0.145739242434502,-0.069515869021416,0.004426401574165,0.055565763264894) * MODEL6_texOff(vec2(0,1));
res += mat4(0.058661192655563,0.234431907534599,-0.114347390830517,-0.004732905887067,-0.009157743304968,-0.037074588239193,0.018158677965403,-0.033715214580297,-0.038202226161957,-0.069498009979725,-0.132704645395279,0.015781762078404,-0.162334784865379,0.049185663461685,-0.012269393540919,0.055563375353813) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.031536597758532,-0.126188188791275,-0.046984892338514,-0.073828704655170,-0.173448890447617,0.059000484645367,0.138177946209908,-0.066253021359444,0.067713566124439,0.112890616059303,-0.154562026262283,-0.096841491758823,0.153516933321953,-0.027052957564592,-0.258216202259064,-0.130663156509399) * MODEL6_texOff(vec2(1,0));
res += mat4(0.023126082494855,-0.196954175829887,0.094500742852688,-0.013333683833480,-0.134370103478432,-0.109338127076626,-0.006580762099475,0.109868407249451,-0.034288581460714,0.063803069293499,0.021360196173191,-0.010450185276568,0.059153020381927,-0.022336319088936,0.023058665916324,0.047228809446096) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.027028471231461,-0.005322921555489,0.002989857457578,0.121911615133286) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_Medium_2x_Photo] mapping 4_3

vec4 hook()
{
vec4 res = vec4(-0.110056355595589,-0.165093988180161,-0.122908487915993,-0.022717365995049);
res += mat4(-0.071143902838230,0.073813021183014,-0.032986212521791,-0.027901366353035,0.033523879945278,-0.128068849444389,0.005651084706187,0.093688733875751,0.011582467705011,-0.007860701531172,-0.047811187803745,0.025915138423443,-0.025505889207125,-0.147552758455276,0.006835410837084,0.065307527780533) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.039036191999912,0.131071388721466,-0.160595938563347,-0.015264024026692,0.022554270923138,0.028942927718163,0.075982250273228,0.070431619882584,-0.019866907969117,-0.055953044444323,0.078690700232983,0.014679873362184,-0.111299015581608,0.180699139833450,0.085709422826767,0.002797343302518) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.106336444616318,0.241529271006584,-0.213661685585976,0.019482441246510,-0.007860671728849,0.002608788898215,-0.061346240341663,-0.015326024033129,0.042277537286282,-0.119309850037098,-0.047471057623625,0.018912192434072,0.057381674647331,0.230133429169655,0.079280957579613,-0.059358600527048) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.022643754258752,0.064044862985611,-0.015274345874786,-0.067619480192661,-0.011944706551731,0.018207330256701,-0.134205371141434,-0.054752241820097,-0.019977789372206,-0.165734991431236,-0.028705528005958,-0.032262828201056,-0.014547551982105,0.090533465147018,0.033220063894987,-0.062863171100616) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.144208490848541,0.155620425939560,-0.240749955177307,0.059664111584425,0.057814523577690,-0.207289606332779,0.102259770035744,-0.013744290918112,0.017457125708461,0.050934989005327,0.065879002213478,-0.083151414990425,-0.102098830044270,0.093264982104301,-0.031378082931042,-0.022209201008081) * MODEL1_texOff(vec2(0,0));
res += mat4(0.044767677783966,0.096849560737610,-0.227063715457916,-0.000240384571953,0.022824263200164,-0.020140781998634,0.033932324498892,-0.024620015174150,-0.068730935454369,-0.117335632443428,-0.030331533402205,0.080004595220089,0.019933227449656,-0.088065609335899,0.018793828785419,-0.007766748312861) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.066494792699814,0.197131603956223,-0.042892653495073,-0.017010729759932,0.018306307494640,-0.072946995496750,0.080810770392418,-0.016461603343487,-0.001703153830022,-0.148269504308701,0.194658145308495,-0.010206719860435,-0.081079095602036,0.043395239859819,-0.032191861420870,-0.070131592452526) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.081163048744202,0.063491873443127,-0.048281401395798,0.024211466312408,-0.069977805018425,0.082638956606388,-0.110533148050308,-0.000043083677156,0.021314088255167,-0.099505908787251,-0.197351217269897,0.006172002758831,-0.167713209986687,-0.038786113262177,0.036213722079992,-0.110482603311539) * MODEL1_texOff(vec2(1,0));
res += mat4(0.065439209342003,0.075091056525707,-0.188050866127014,0.074826866388321,-0.018542399629951,-0.050682038068771,0.031610067933798,0.056382421404123,-0.041015442460775,0.116561055183411,0.038660943508148,0.089417099952698,0.005098785273731,0.046168603003025,-0.073590591549873,-0.068724527955055) * MODEL1_texOff(vec2(1,1));
res += mat4(0.002640943508595,-0.128368973731995,-0.078921884298325,0.029542006552219,0.128310889005661,-0.003797939512879,0.157302126288414,-0.053225819021463,0.073296047747135,-0.049271758645773,0.046236876398325,0.002886765403673,-0.056120615452528,-0.049887880682945,-0.101451776921749,-0.000934786454309) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.013286276720464,-0.074381947517395,-0.073412030935287,0.008057386614382,-0.047242831438780,-0.004185999277979,-0.068912826478481,-0.061781503260136,-0.058116059750319,0.044286213815212,-0.210686057806015,-0.030331421643496,0.002178261522204,0.011558082886040,0.032221637666225,0.011715412139893) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.039960186928511,-0.003501933533698,-0.131611570715904,0.017107972875237,0.015123236924410,-0.138359770178795,0.045093409717083,-0.018201692029834,0.005811814218760,-0.095505312085152,0.092066839337349,0.051337685436010,0.018389085307717,-0.115049250423908,0.042280722409487,-0.008955202065408) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.014160573482513,-0.228643372654915,-0.140138879418373,0.049478825181723,0.130555704236031,-0.127391546964645,0.176357835531235,0.158689975738525,-0.011712539009750,-0.050354585051537,-0.025104712694883,0.164416998624802,-0.207585707306862,0.062069553881884,-0.169930487871170,-0.195482730865479) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.016510544344783,-0.298120051622391,-0.143246427178383,-0.184488281607628,-0.173729509115219,-0.032825112342834,-0.085626058280468,-0.146297305822372,-0.056872393935919,0.040258463472128,-0.061749838292599,-0.075573958456516,-0.099570780992508,-0.245200335979462,0.020092185586691,0.076170645654202) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.039007212966681,-0.089480407536030,-0.195836901664734,0.232099473476410,-0.063684456050396,0.054011031985283,0.009568852372468,0.052151590585709,-0.044272806495428,0.099731847643852,0.042065557092428,0.147152379155159,0.072607137262821,-0.012203414924443,0.320173025131226,0.038735561072826) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.018815411254764,-0.163639739155769,0.015026297420263,-0.038074426352978,-0.019298972561955,0.026960579678416,0.068603627383709,-0.020979272201657,-0.018916368484497,-0.011936836875975,-0.162584885954857,-0.098705656826496,0.087982393801212,-0.117406047880650,-0.151109457015991,0.004188703838736) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.078858658671379,0.007237762678415,-0.073788851499557,0.145921409130096,-0.023838618770242,-0.174393251538277,-0.069154217839241,0.049105145037174,-0.085122294723988,-0.107189640402794,0.111697725951672,0.071603074669838,0.057226411998272,0.033978745341301,-0.003559624077752,0.045256976038218) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.074740692973137,-0.054758675396442,-0.150229334831238,-0.000168330618180,0.021293228492141,0.038123194128275,0.212604761123657,-0.127447769045830,-0.006530219689012,-0.003932498861104,-0.078897289931774,-0.080334819853306,-0.088580861687660,-0.130601450800896,0.145153090357780,0.007423172239214) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.084080047905445,0.030535614117980,0.009888441301882,-0.018876696005464,0.004540584515780,-0.075456894934177,0.012059584259987,0.020600959658623,-0.137542217969894,0.075406953692436,0.043598491698503,-0.014612638391554,-0.080804437398911,-0.023068632930517,-0.052888952195644,0.006380682345480) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.007396863773465,0.134764507412910,-0.118897490203381,-0.030542848631740,0.000672833353747,-0.139620453119278,-0.003149923868477,0.040272064507008,0.008978093974292,0.071298174560070,-0.040945556014776,0.122790068387985,-0.017485065385699,-0.028650898486376,0.064844742417336,-0.005672289989889) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.058123633265495,-0.151402637362480,-0.039738338440657,-0.019258383661509,0.028199234977365,-0.071170151233673,0.098030939698219,-0.045528963208199,-0.005379387643188,0.083911858499050,0.031465157866478,0.055671028792858,0.059566408395767,0.063158862292767,0.051525566726923,0.078594632446766) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.018214972689748,-0.194609358906746,0.259156554937363,0.136800825595856,0.170057445764542,-0.222021669149399,0.134618952870369,0.156936466693878,-0.062780715525150,0.088420502841473,0.065696753561497,0.092948131263256,-0.084127254784107,0.114135697484016,-0.130410701036453,-0.102916762232780) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.024923453107476,-0.287347912788391,-0.182816982269287,-0.127976745367050,0.053923148661852,-0.008456610143185,-0.115060061216354,-0.237503543496132,0.115888029336929,0.143078759312630,-0.059349734336138,-0.181707337498665,0.176677465438843,0.041362404823303,0.238504722714424,0.272027283906937) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.052864398807287,-0.232197195291519,0.006749702151865,0.025247583165765,-0.218410432338715,-0.227979734539986,0.035035468637943,0.210470959544182,-0.115354552865028,-0.022849136963487,-0.032237231731415,0.170688122510910,-0.089823365211487,-0.169665262103081,-0.039959348738194,-0.060149118304253) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.191741019487381,0.005711253266782,-0.016389120370150,0.003252092981711,-0.054801926016808,-0.051317419856787,0.103873543441296,0.060691252350807,-0.032039504498243,0.021374108269811,-0.020685950294137,0.008824446238577,0.035279534757137,-0.064453668892384,-0.061891343444586,-0.094222731888294) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.115923270583153,0.075742334127426,-0.090024814009666,-0.049929726868868,0.183475986123085,-0.123453296720982,-0.045084889978170,0.064876221120358,0.007075569126755,0.085097961127758,-0.105946294963360,-0.001187067944556,0.029696956276894,-0.063093967735767,0.004701371770352,-0.091919437050819) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.139549270272255,-0.171429887413979,-0.057174287736416,-0.009458120912313,-0.061152823269367,-0.007869362831116,0.058921791613102,0.004781517665833,0.048188190907240,0.048347670584917,0.006198504474014,-0.046024192124605,-0.066624261438847,-0.015240975655615,-0.042216993868351,-0.036251347512007) * MODEL3_texOff(vec2(1,1));
res += mat4(0.067710340023041,0.059656862169504,-0.095154635608196,0.089266806840897,-0.036967255175114,0.139496222138405,-0.253997087478638,0.028862051665783,0.049117870628834,-0.131373912096024,0.276877343654633,-0.067072689533234,0.004798746667802,-0.083610117435455,0.046938914805651,-0.057260613888502) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.040129125118256,0.025587366893888,0.051407538354397,0.056360188871622,-0.116310708224773,0.077811069786549,0.050133038312197,0.199604257941246,0.005450067110360,-0.216759726405144,-0.066593751311302,-0.004344198852777,-0.018488224595785,-0.060069963335991,0.023445934057236,-0.044490423053503) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.053281582891941,-0.207436338067055,0.123345687985420,0.010953947901726,0.044873371720314,-0.037434298545122,0.031665310263634,-0.084029823541641,0.026336733251810,-0.041064668446779,0.031314179301262,0.040772087872028,0.063027255237103,0.124436840415001,0.008494256995618,-0.070406779646873) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.004934913478792,-0.012851017527282,-0.099666029214859,-0.031510464847088,0.034388292580843,0.012048937380314,0.147661656141281,0.001971604535356,0.011264146305621,0.065466247498989,0.421058654785156,-0.003561160061508,-0.022408628836274,0.105213239789009,0.008939257822931,-0.111759275197983) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.023537514731288,0.030499981716275,0.168599754571915,0.022630421444774,0.218039885163307,-0.047198485583067,-0.139152318239212,-0.161091119050980,0.371611118316650,-0.063395977020264,-0.353556156158447,-0.019832618534565,-0.107396461069584,0.005724486429244,0.032825086265802,0.185536041855812) * MODEL4_texOff(vec2(0,0));
res += mat4(0.133930310606956,-0.053762197494507,0.114289641380310,-0.013759328983724,-0.034035526216030,0.024742407724261,0.027612918987870,0.069281779229641,0.030807113274932,0.065580569207668,0.027468580752611,-0.001420850865543,-0.003407548414543,-0.005620871670544,0.094341568648815,0.054561227560043) * MODEL4_texOff(vec2(0,1));
res += mat4(0.144519835710526,0.001733138458803,0.112746581435204,0.056960780173540,-0.065344266593456,-0.061902787536383,-0.008504348807037,0.013047327287495,-0.135100319981575,-0.167451426386833,0.166627898812294,0.052008152008057,0.014434591867030,0.166747927665710,0.017902078106999,-0.003894768422469) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.060609243810177,0.074553661048412,-0.064067766070366,-0.008818482048810,-0.009602670557797,0.084028214216232,-0.012459318153560,0.066755808889866,0.187750741839409,-0.011249116621912,0.095372773706913,0.014445842243731,0.046481151133776,-0.041044365614653,-0.106240563094616,0.158998355269432) * MODEL4_texOff(vec2(1,0));
res += mat4(0.021491799503565,-0.042443264275789,-0.116298750042915,0.011572858318686,-0.011291925795376,-0.015253303572536,0.043457504361868,0.011719699017704,-0.050144195556641,-0.152181074023247,-0.007709437981248,0.024847678840160,-0.007680621929467,-0.036705050617456,0.148289948701859,-0.062144082039595) * MODEL4_texOff(vec2(1,1));
res += mat4(0.024350965395570,0.103303797543049,-0.024482509121299,0.067401722073555,0.011880027130246,-0.019445126876235,-0.008845840580761,0.012183370068669,-0.052725438028574,0.002685517771170,-0.052298981696367,-0.000049550944823,-0.024310553446412,-0.060164090245962,-0.056242264807224,-0.117190986871719) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.020626382902265,-0.083424024283886,-0.005777586251497,-0.005433015525341,-0.045050434768200,-0.081404060125351,-0.075511485338211,-0.048067681491375,0.083521641790867,-0.048336908221245,0.002002930501476,0.065800935029984,-0.017894778400660,0.089929357171059,-0.005165586713701,-0.031518660485744) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.067114464938641,0.121102385222912,0.063126645982265,0.062423799186945,0.077517449855804,0.075669154524803,-0.060523334890604,-0.031658567488194,-0.049988619983196,-0.033864215016365,0.004680504091084,-0.037243869155645,0.160378366708755,-0.036206841468811,0.173134028911591,0.000822910515126) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.128260761499405,0.159389123320580,-0.095250412821770,0.112759768962860,-0.125945642590523,0.089943788945675,-0.091761216521263,-0.164441481232643,-0.010518615134060,-0.131392419338226,-0.118190638720989,-0.040119260549545,0.090295165777206,-0.208676189184189,0.052795905619860,-0.078671313822269) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.099957831203938,-0.014679423533380,0.178316310048103,0.017856659367681,0.228875428438187,-0.030298072844744,0.085519306361675,0.179280117154121,-0.105361990630627,-0.081341475248337,0.193852022290230,-0.037188868969679,-0.034498520195484,-0.028187535703182,-0.144309744238853,-0.061041574925184) * MODEL5_texOff(vec2(0,0));
res += mat4(0.062708243727684,-0.017981631681323,-0.014918663538992,0.042223181575537,0.190520301461220,0.129370108246803,0.050866030156612,-0.228269904851913,-0.018569111824036,-0.102444849908352,-0.135867342352867,-0.085251241922379,0.075546473264694,0.152698203921318,0.057196218520403,0.012827943079174) * MODEL5_texOff(vec2(0,1));
res += mat4(0.081934228539467,-0.118188403546810,-0.043585058301687,-0.015979491174221,0.014124153181911,0.046197231858969,-0.042847048491240,-0.075218103826046,0.038993988186121,-0.084128975868225,-0.068624883890152,0.046487178653479,0.031529974192381,-0.126117646694183,-0.068047329783440,0.049491006880999) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.130917251110077,0.003437070176005,-0.107034027576447,0.020911395549774,-0.005390555132180,-0.073308348655701,0.037258885800838,-0.072667285799980,-0.014121883548796,-0.095371723175049,-0.052721329033375,-0.049897912889719,0.018916191533208,0.091064766049385,0.118802413344383,0.140027135610580) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.001625638920814,0.112055338919163,-0.012858824804425,0.119361020624638,-0.022018121555448,0.009831362403929,-0.028862342238426,0.018858846276999,-0.028526160866022,-0.035833220928907,0.043960753828287,0.071154192090034,0.001565746148117,-0.018551142886281,0.014010691083968,0.012556145898998) * MODEL5_texOff(vec2(1,1));
res += mat4(0.209630161523819,0.006369023118168,0.067961171269417,0.019724164158106,0.065064266324043,-0.126918151974678,-0.121802762150764,-0.029027510434389,-0.012366340495646,0.231990173459053,-0.040690541267395,0.017900262027979,0.010710556060076,-0.127236485481262,-0.103690482676029,0.027439394965768) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.037847802042961,-0.048228334635496,0.153351113200188,-0.096715427935123,0.085375584661961,-0.048635151237249,0.246349155902863,0.009906409308314,0.018012195825577,0.043220955878496,-0.055311176925898,0.048754170536995,-0.064176991581917,-0.156518340110779,-0.003368514124304,-0.007383464835584) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.003534358693287,0.078351713716984,-0.133208304643631,-0.034637443721294,0.110773622989655,0.083120934665203,0.083996713161469,-0.087373338639736,0.008462424390018,0.145333930850029,-0.062715485692024,0.022294525057077,-0.030444428324699,0.054915979504585,-0.046260740607977,0.015200687572360) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.207076102495193,0.138349995017052,0.049055017530918,0.009008681401610,0.120978750288486,-0.071112640202045,-0.128163427114487,0.002066398505121,-0.061767000705004,0.136381536722183,0.072357431054115,0.140454947948456,-0.160020858049393,0.087663434445858,-0.203824609518051,-0.056225441396236) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.194290950894356,-0.062706828117371,0.071941398084164,0.015855375677347,-0.135636106133461,0.017857288941741,0.128372862935066,-0.163294032216072,0.242453083395958,-0.072009645402431,0.089726902544498,-0.026008242741227,0.152553990483284,0.080988131463528,0.293611079454422,0.070079244673252) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.125807389616966,-0.039746671915054,-0.235795244574547,-0.052148584276438,-0.076413579285145,-0.090254493057728,0.019656354561448,0.091644406318665,0.177755951881409,0.026412008330226,0.075818233191967,-0.155070066452026,0.013723466545343,-0.072560131549835,0.092511251568794,-0.134593769907951) * MODEL6_texOff(vec2(0,1));
res += mat4(0.141287118196487,-0.023727897554636,0.016296202316880,-0.058692902326584,0.113904587924480,-0.035874016582966,0.059277351945639,-0.025175100192428,0.004867372103035,0.016129016876221,-0.027704086154699,0.020654033869505,0.038151185959578,-0.174340397119522,-0.156118482351303,-0.069808393716812) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.153416171669960,0.121829681098461,0.107371889054775,-0.024053551256657,0.033405389636755,-0.120509400963783,-0.017194021493196,-0.133384183049202,-0.033233221620321,0.222631916403770,0.001018406357616,-0.054962418973446,-0.134283497929573,-0.203613713383675,0.069731123745441,0.073886521160603) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.116280511021614,0.072911821305752,-0.103622041642666,-0.014806050807238,-0.026386378332973,0.042690873146057,0.013308853842318,0.059536453336477,0.055976718664169,0.010636150836945,-0.056929901242256,0.058042254298925,0.150055482983589,0.091016687452793,-0.021403679624200,-0.059235490858555) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.119729503989220,-0.067402206361294,0.074540048837662,0.890694916248322) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_Medium_2x_Photo] mapping 4_4

vec4 hook()
{
vec4 res = vec4(-0.056806612759829,-0.095430508255959,-0.031400073319674,-0.124986432492733);
res += mat4(-0.007450256962329,0.097693227231503,-0.124056696891785,0.042215496301651,-0.036780614405870,-0.072873167693615,-0.051885161548853,-0.056354779750109,0.088706307113171,0.003846592968330,-0.190467789769173,-0.128843694925308,0.160356730222702,-0.029654441401362,0.314225167036057,0.157469421625137) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.052076023072004,-0.096721380949020,-0.144994094967842,0.180175051093102,0.021595707163215,0.041025314480066,0.198297575116158,0.044814355671406,0.011247014626861,-0.131986126303673,-0.022306276485324,0.142715543508530,0.049875680357218,0.043364431709051,-0.032545574009418,0.010806185193360) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.044993359595537,0.057055119425058,-0.045204389840364,0.038998950272799,-0.086263887584209,0.033843088895082,0.075890682637691,0.021658413112164,0.061511974781752,0.029104821383953,-0.013993224129081,-0.067819491028786,0.029166921973228,0.025229228660464,-0.023136874660850,-0.004044636152685) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.241256296634674,-0.102575674653053,0.123164661228657,-0.118872739374638,0.032469376921654,0.111237235367298,0.177476480603218,0.042608637362719,0.174214884638786,-0.047524783760309,0.059028066694736,0.113442689180374,0.165924876928329,0.029285456985235,-0.071813993155956,0.034399006515741) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.109757840633392,-0.163438901305199,0.058265909552574,0.220585420727730,-0.196221813559532,0.001348399557173,0.045098453760147,0.056102856993675,-0.066907614469528,0.056421034038067,-0.190819635987282,-0.059725746512413,0.065272554755211,0.141710788011551,0.025213466957211,-0.062793083488941) * MODEL1_texOff(vec2(0,0));
res += mat4(0.156317114830017,0.026552943512797,0.151537984609604,-0.105278097093105,0.103928081691265,-0.034980300813913,0.118465855717659,0.005356319248676,0.140319734811783,-0.001678527449258,-0.077845662832260,0.102639786899090,0.055653810501099,-0.102511413395405,0.044801358133554,0.036272373050451) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.118938960134983,0.012750600464642,-0.045590072870255,0.001362873823382,-0.179316431283951,-0.044593784958124,0.243577674031258,0.039344716817141,-0.036112543195486,-0.056201495230198,-0.035528812557459,0.010540544986725,0.012145201675594,0.006014046259224,0.018933681771159,-0.163137659430504) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.123936355113983,0.144705340266228,-0.055057592689991,0.211061850190163,0.111253201961517,-0.060943342745304,0.056207492947578,-0.051060792058706,0.146393045783043,-0.003863659454510,-0.230283349752426,0.049956142902374,-0.040718115866184,-0.106283627450466,-0.036609463393688,-0.017173551023006) * MODEL1_texOff(vec2(1,0));
res += mat4(0.146779909729958,0.011424944736063,-0.204793646931648,0.043728023767471,-0.027861746028066,0.001180709106848,0.241266235709190,0.008570119738579,-0.007081359159201,0.160268545150757,-0.031459756195545,0.030326908454299,-0.041394717991352,-0.008463532663882,0.046924334019423,0.025781583040953) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.053155891597271,0.057392373681068,-0.069388933479786,0.028837645426393,-0.177802070975304,0.010120313614607,0.017821351066232,0.031284809112549,-0.051581606268883,-0.003237037453800,0.089823268353939,0.001066446187906,0.158949181437492,-0.042082060128450,0.078793026506901,0.214739710092545) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.008419536985457,0.091342322528362,-0.054513514041901,0.040872972458601,-0.052247505635023,-0.096923395991325,0.043180223554373,0.184421285986900,0.067583218216896,-0.018423693254590,-0.081155367195606,-0.022861057892442,0.007403356023133,-0.062249086797237,-0.169378638267517,-0.037673484534025) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.037601534277201,0.014060934074223,0.073046274483204,0.084075361490250,0.039361819624901,-0.090264357626438,-0.086274161934853,0.022707756608725,0.010668801143765,-0.109273426234722,0.003821099177003,0.029050480574369,-0.011494164355099,-0.066488035023212,0.052238129079342,-0.015902038663626) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.135064661502838,0.000054529951740,0.049330964684486,0.106976166367531,-0.046029329299927,-0.081641793251038,-0.058754686266184,0.109150074422359,-0.126507654786110,-0.065444581210613,0.086263328790665,-0.012597138062119,0.175217300653458,0.030076291412115,-0.137918516993523,0.140704080462456) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.040233474224806,0.020339002832770,0.055714402347803,-0.263645440340042,0.027948804199696,-0.101223170757294,-0.332173764705658,0.168923333287239,0.148454099893570,-0.128476038575172,0.048759859055281,-0.222080752253532,0.090762138366699,0.017572592943907,-0.076512731611729,-0.163398817181587) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.084810845553875,0.224488750100136,0.021273547783494,0.129624500870705,0.009145359508693,0.029218474403024,0.035911966115236,-0.043484557420015,-0.085457384586334,0.034495275467634,0.008879236876965,0.011197489686310,-0.126376107335091,-0.134071946144104,0.016107147559524,0.152780592441559) * MODEL2_texOff(vec2(0,1));
res += mat4(0.030652465298772,-0.036758322268724,0.027062932029366,-0.076766781508923,0.078543409705162,0.004960902035236,0.002399864839390,0.127761706709862,-0.043131288141012,-0.211015135049820,-0.088254898786545,-0.155236124992371,0.107278689742088,-0.080375656485558,0.002306727692485,0.220524504780769) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.012285675853491,-0.029033690690994,0.024486446753144,0.106507420539856,0.067279733717442,-0.086144551634789,0.077642813324928,0.027921684086323,-0.136576816439629,-0.008568692952394,0.049785617738962,0.051228571683168,0.050017241388559,-0.091047264635563,-0.090111032128334,-0.032038636505604) * MODEL2_texOff(vec2(1,0));
res += mat4(0.005927662830800,0.101533398032188,-0.024126611649990,0.075823098421097,-0.119314149022102,-0.200711429119110,-0.022239066660404,0.043403271585703,-0.022959077730775,-0.042734067887068,0.113056659698486,-0.042849034070969,-0.036008395254612,0.024932753294706,-0.171103328466415,0.045469932258129) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.019726816564798,0.005144148599356,-0.071451678872108,-0.032160624861717,-0.023435009643435,-0.058130115270615,-0.051495920866728,0.184903070330620,-0.209507718682289,0.082007303833961,-0.140966862440109,-0.022393010556698,0.165635302662849,0.037938624620438,-0.020496074110270,0.110584080219269) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.006028318777680,-0.102920196950436,-0.000144927369547,-0.068034954369068,-0.006583282724023,-0.010578087531030,-0.071230992674828,-0.106863535940647,0.027783421799541,-0.101454265415668,-0.057270687073469,-0.117888741195202,-0.041216436773539,0.005216221325099,-0.177366733551025,-0.156623288989067) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.047887217253447,-0.118200480937958,-0.036778334528208,-0.032974556088448,-0.040297977626324,-0.091956965625286,0.076476722955704,0.016426846385002,0.015633875504136,0.084562294185162,-0.101024337112904,-0.058751899749041,0.060027811676264,-0.138008877635002,0.064355880022049,0.006441031116992) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.179559051990509,-0.145308151841164,-0.004104063380510,-0.018534034490585,0.099452428519726,-0.171091228723526,0.044345319271088,0.366488486528397,-0.092928484082222,-0.078692473471165,-0.089440353214741,0.013988058082759,-0.086176462471485,-0.001034897635691,-0.071946792304516,0.318168938159943) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.083447061479092,-0.076459974050522,-0.064322046935558,-0.192823499441147,0.053108751773834,0.043649971485138,0.020232057198882,-0.151833802461624,0.093954741954803,0.266671001911163,-0.101938933134079,-0.159960776567459,0.280280292034149,-0.122018866240978,0.193568855524063,-0.278669089078903) * MODEL3_texOff(vec2(0,0));
res += mat4(0.012526926584542,-0.083874568343163,-0.015366354025900,0.104212850332260,-0.092391580343246,0.100765727460384,0.011355954222381,0.096176102757454,-0.124150320887566,0.041857205331326,-0.092262983322144,-0.019055867567658,-0.144469097256660,0.097199253737926,0.111989311873913,0.013821593485773) * MODEL3_texOff(vec2(0,1));
res += mat4(0.109695322811604,0.119694031774998,-0.096451036632061,0.064795061945915,0.083966180682182,0.050007931888103,-0.023725256323814,0.218878313899040,-0.029226921498775,0.072193011641502,-0.087901465594769,-0.105791509151459,0.002219075802714,-0.120380818843842,-0.018223727121949,0.021159732714295) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.089510940015316,-0.154255032539368,0.119317449629307,-0.192857816815376,0.056398190557957,-0.082445144653320,-0.211282029747963,-0.159574717283249,-0.042990967631340,0.096137113869190,-0.179961413145065,0.067699544131756,0.123264230787754,0.070596531033516,-0.118075631558895,-0.072280339896679) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.042644120752811,0.052979033440351,0.083401449024677,0.021647036075592,-0.108817972242832,-0.116322822868824,-0.096034891903400,0.067977435886860,-0.011775226332247,-0.136064901947975,-0.092456489801407,-0.053713828325272,-0.043612774461508,-0.026032619178295,-0.027271548286080,-0.012677858583629) * MODEL3_texOff(vec2(1,1));
res += mat4(0.028267558664083,-0.009490497410297,0.008023949339986,0.030345454812050,0.029253358021379,0.009017228148878,-0.008789385668933,-0.076127700507641,-0.199407204985619,-0.197608515620232,0.045748163014650,-0.125715360045433,0.024384843185544,0.026588309556246,0.021601581946015,0.006845687516034) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.077176831662655,0.066015519201756,0.097936376929283,0.119083665311337,-0.039932508021593,-0.094066374003887,0.067307770252228,0.006790111307055,-0.067903444170952,0.152953088283539,-0.100591421127319,-0.015757786110044,-0.032454233616590,0.031533800065517,-0.015391201712191,0.098476015031338) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.067900486290455,0.126124083995819,0.057255163788795,0.039725363254547,0.022645229473710,0.037287760525942,-0.015818472951651,0.007886018604040,-0.016781212761998,-0.009586885571480,0.058193251490593,-0.001517589553259,0.018131354823709,-0.070231296122074,-0.097020365297794,0.027797358110547) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.182664200663567,0.120617166161537,0.097805038094521,0.070352837443352,-0.008612708188593,0.175991460680962,0.022860655561090,0.195403322577477,-0.164443016052246,0.148478582501411,-0.248609140515327,-0.091722883284092,-0.091791227459908,-0.143257543444633,0.074003890156746,-0.006732710171491) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.051757652312517,0.165489003062248,0.134372636675835,0.064817249774933,-0.110401257872581,-0.211605757474899,-0.016847269609571,-0.044352523982525,-0.227366745471954,-0.297410845756531,0.071184538304806,-0.003272049594671,0.011741762049496,-0.027191421017051,-0.014638841152191,0.040855780243874) * MODEL4_texOff(vec2(0,0));
res += mat4(0.039334401488304,-0.051995158195496,0.008599958382547,-0.018016897141933,0.008740832097828,-0.057365994900465,-0.035220496356487,-0.022301083430648,0.009469744749367,-0.017274096608162,0.008070674724877,0.059934653341770,-0.051306061446667,0.078689098358154,0.022361177951097,0.019307844340801) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.139230623841286,0.024888526648283,0.039935152977705,-0.004918491467834,0.029867734760046,-0.191242024302483,-0.060716856271029,-0.020909791812301,0.100357957184315,0.118360519409180,0.119895197451115,0.076445423066616,-0.127098843455315,0.055930815637112,-0.115830734372139,0.097311124205589) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.154567047953606,-0.099603198468685,-0.129890918731689,0.078573837876320,-0.044662870466709,0.081361688673496,-0.100599892437458,0.070302076637745,-0.071381673216820,-0.048848021775484,0.188246950507164,-0.058381073176861,0.192703425884247,-0.012436249293387,0.043746817857027,-0.084023222327232) * MODEL4_texOff(vec2(1,0));
res += mat4(0.103192239999771,-0.056425355374813,0.030514471232891,0.022252807393670,-0.009928048588336,-0.011702821590006,-0.078815430402756,0.007094144821167,0.061367426067591,-0.072519265115261,0.017471246421337,0.042966842651367,-0.082279101014137,-0.031803291290998,0.092945031821728,0.034115545451641) * MODEL4_texOff(vec2(1,1));
res += mat4(0.019635794684291,0.039261560887098,0.059479251503944,0.011758458800614,0.041794385761023,-0.018833281472325,0.097747303545475,0.015975866466761,-0.063459232449532,0.056686371564865,-0.002714969450608,-0.115141585469246,0.214828088879585,0.020030604675412,-0.065212026238441,0.097634449601173) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.017573127523065,0.004647406749427,0.075809083878994,0.063544429838657,-0.138471037149429,0.016287155449390,0.088489376008511,0.051690246909857,-0.006568677723408,-0.148429363965988,-0.047150097787380,0.018515609204769,-0.001951630343683,-0.054056111723185,-0.017955545336008,-0.056946426630020) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.064473591744900,0.056612886488438,-0.148153945803642,0.011012876406312,-0.039647787809372,0.075473457574844,-0.113542124629021,-0.140303105115891,-0.013056632131338,-0.050254918634892,0.050920374691486,0.033770699054003,-0.031629800796509,-0.038126029074192,-0.045194208621979,0.000579154992010) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.175336599349976,0.168835133314133,-0.208020657300949,0.064962372183800,0.169516339898109,0.105787768959999,-0.169878780841827,0.124899752438068,-0.209302306175232,-0.104673661291599,0.055849220603704,-0.289315372705460,0.117193639278412,-0.150631681084633,0.032227810472250,0.043891832232475) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.012047084979713,-0.255097776651382,-0.080237686634064,0.016517035663128,-0.240266859531403,0.219826504588127,-0.190854221582413,0.185501426458359,0.014956186525524,-0.206892460584641,0.017741100862622,-0.032437250018120,-0.074366360902786,0.075376905500889,0.171638980507851,-0.111045017838478) * MODEL5_texOff(vec2(0,0));
res += mat4(0.030038230121136,-0.023582832887769,0.029200339689851,-0.042026590555906,0.180008679628372,-0.029196243733168,-0.174814805388451,-0.129165664315224,0.043252456933260,-0.024061491712928,0.013529743067920,0.022631967440248,0.001452222117223,-0.060799632221460,-0.182435184717178,0.082333341240883) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.036766789853573,-0.094166196882725,0.014761342667043,-0.004318016115576,-0.069761872291565,0.063285999000072,-0.036085437983274,-0.076497219502926,0.063692212104797,-0.015203889459372,0.106672234833241,-0.132725104689598,0.034666605293751,-0.028973164036870,0.061752572655678,-0.066145293414593) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.055060740560293,0.155058279633522,0.010079444386065,0.045696906745434,-0.109672740101814,-0.023123992606997,0.111593149602413,-0.023064726963639,-0.033990785479546,0.022022673860192,-0.152508884668350,0.021465627476573,-0.079826414585114,-0.074684984982014,-0.067817702889442,-0.018630513921380) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.027280498296022,0.017458887770772,-0.047786109149456,-0.041857935488224,-0.037756938487291,0.116871848702431,-0.075310915708542,-0.099177211523056,-0.000108131884190,0.071108534932137,-0.107399620115757,0.021166946738958,-0.037525922060013,-0.000917763565667,-0.086414150893688,-0.021632466465235) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.096080891788006,0.107303760945797,0.010479315184057,-0.098797731101513,0.103361219167709,0.069036357104778,0.066919028759003,0.026750214397907,-0.054245050996542,-0.013652970083058,-0.094111979007721,-0.001736308564432,0.111454568803310,-0.017300466075540,-0.058556135743856,-0.013112987391651) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.014847033657134,-0.021112089976668,-0.022820279002190,-0.128330469131470,-0.008204687386751,-0.037229854613543,-0.136673673987389,0.043279692530632,-0.041523136198521,0.046139892190695,-0.097262181341648,-0.082808859646320,-0.003770400537178,0.064926452934742,-0.166137337684631,-0.049040518701077) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.069273479282856,0.066168285906315,0.169940099120140,0.041505444794893,0.020677821710706,0.032001037150621,-0.141515314579010,0.069740444421768,-0.037723381072283,0.110468447208405,-0.041611149907112,-0.052713695913553,-0.024456711485982,0.023253757506609,-0.041968282312155,-0.079364232718945) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.266697257757187,-0.011522698216140,-0.012430263683200,-0.232376247644424,-0.126209154725075,-0.093987166881561,-0.164466917514801,-0.134462341666222,0.038993705064058,0.223431408405304,-0.073054037988186,-0.159805342555046,0.110369861125946,0.100471787154675,0.022524900734425,0.119887389242649) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.046408556401730,-0.157993733882904,0.091326870024204,-0.215794876217842,0.051815200597048,0.202430903911591,-0.182851284742355,-0.124161131680012,-0.185674667358398,0.029284035786986,0.172190904617310,0.238825693726540,-0.001049910904840,-0.136533498764038,-0.183011442422867,0.112753808498383) * MODEL6_texOff(vec2(0,0));
res += mat4(0.085081100463867,-0.222734093666077,-0.191883340477943,-0.040169257670641,-0.019573217257857,-0.030732149258256,-0.000283713976387,0.103105552494526,0.249070852994919,-0.129326567053795,-0.026565333828330,-0.144209101796150,-0.020072057843208,0.038493681699038,-0.054988224059343,-0.127617016434669) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.175239145755768,-0.137202173471451,-0.012390867806971,-0.075907588005066,0.098690383136272,0.154155597090721,0.088520847260952,-0.118851713836193,-0.055242680013180,0.106680482625961,0.023573616519570,-0.007496269419789,0.106467813253403,-0.232591077685356,-0.005305361468345,-0.025445073843002) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.101813264191151,0.020741369575262,-0.068476706743240,0.029379552230239,0.044345669448376,-0.007045827340335,-0.013441162183881,0.073102831840515,0.057119388133287,0.034131545573473,0.110666677355766,-0.048027113080025,-0.003705046139657,0.044740151613951,-0.102149054408073,0.164720281958580) * MODEL6_texOff(vec2(1,0));
res += mat4(0.061638593673706,-0.047583129256964,0.206789165735245,0.070849165320396,-0.063035331666470,-0.050670776516199,-0.086123958230019,0.070290513336658,0.065772615373135,0.132750734686852,0.027199337258935,-0.039673916995525,0.136540636420250,-0.127763435244560,-0.061425577849150,-0.142560869455338) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.004122764337808,0.004191775340587,-0.041051272302866,0.076845295727253) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_Medium_2x_Photo] mapping 4_5

vec4 hook()
{
vec4 res = vec4(-0.167228847742081,-0.118501827120781,-0.152098789811134,-0.162752911448479);
res += mat4(0.088193185627460,-0.074315935373306,0.059896279126406,-0.110067293047905,-0.078222699463367,-0.011737123131752,0.124257840216160,-0.034990038722754,-0.079496473073959,-0.088339991867542,-0.013739317655563,0.030585311353207,0.073468357324600,-0.024604270234704,0.036521311849356,0.049682959914207) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.090992346405983,0.097713470458984,-0.068846963346004,-0.092138268053532,0.024066658690572,-0.067366927862167,0.181934028863907,0.124404802918434,-0.107699081301689,-0.142940789461136,-0.067820057272911,0.013947755098343,0.121374741196632,0.116439744830132,0.169130742549896,0.054793924093246) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.031802795827389,-0.168138876557350,0.039708968251944,0.140570431947708,-0.053111288696527,-0.043568905442953,0.145944759249687,-0.039247758686543,-0.160762846469879,-0.054146278649569,-0.031733583658934,-0.031062955036759,0.250188618898392,-0.044340863823891,0.036003947257996,0.064373612403870) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.050323516130447,0.052628096193075,0.031949944794178,-0.000347338820575,-0.017012488096952,0.093384213745594,0.003897535614669,0.177717089653015,-0.103049829602242,-0.022704442963004,0.040260117501020,-0.022761428728700,-0.078370027244091,0.099754750728607,-0.188490062952042,-0.074308484792709) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.070207521319389,-0.284637421369553,0.086347401142120,0.056700762361288,0.045008428394794,0.042226150631905,0.079156465828419,-0.179478988051414,0.128371790051460,0.184131652116776,0.123967975378036,-0.106093280017376,-0.022995812818408,0.029024569317698,-0.209114938974380,-0.112825267016888) * MODEL1_texOff(vec2(0,0));
res += mat4(0.072785228490829,0.176757246255875,0.078718110918999,0.032982222735882,0.207520887255669,0.031881429255009,0.048507411032915,0.156653314828873,0.048341304063797,-0.189216241240501,0.056105982512236,-0.009057011455297,-0.075268447399139,0.045844204723835,-0.221796706318855,0.061780784279108) * MODEL1_texOff(vec2(0,1));
res += mat4(0.161982193589211,-0.034873090684414,0.019533535465598,0.019996007904410,-0.105341054499149,-0.008348953910172,-0.031412817537785,-0.058835182338953,0.100075274705887,0.028939798474312,0.049449734389782,0.007932310923934,0.037679649889469,0.017290988937020,-0.069987490773201,0.022431001067162) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.048930894583464,0.028551591560245,0.094671458005905,0.023844849318266,-0.005697867833078,-0.063986293971539,-0.147865861654282,0.025674073025584,-0.104474857449532,-0.142122745513916,-0.289443939924240,0.178544327616692,-0.057305190712214,-0.075014203786850,-0.028427448123693,-0.053601004183292) * MODEL1_texOff(vec2(1,0));
res += mat4(0.084364525973797,-0.081149667501450,0.045290380716324,-0.021692551672459,-0.108586400747299,-0.039742477238178,-0.162189662456512,0.003480913117528,-0.016694733873010,0.209496900439262,-0.007328703068197,-0.065411657094955,0.047635469585657,0.025104738771915,0.119940854609013,-0.131711035966873) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.125548496842384,0.100082196295261,-0.139876246452332,-0.019293319433928,0.052583493292332,0.007585528772324,0.013073059730232,-0.091326728463173,-0.015355169773102,0.018493488430977,0.132053673267365,0.056173067539930,-0.047046590596437,-0.073382683098316,0.011369695886970,0.036326974630356) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.172016903758049,-0.013884022831917,-0.239436209201813,-0.067785866558552,0.036345668137074,-0.037388283759356,-0.027705632150173,0.075775958597660,0.047847762703896,-0.004241732414812,0.112618632614613,-0.112575210630894,-0.002360753715038,0.033101230859756,0.101514033973217,-0.042993646115065) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.025036489591002,0.080508187413216,0.067395031452179,-0.030223188921809,-0.047926135361195,-0.074204705655575,-0.065602831542492,0.110487610101700,0.028001295402646,-0.137652009725571,0.065144971013069,0.015456227585673,-0.031255163252354,-0.143802538514137,0.050284419208765,-0.053247518837452) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.179364904761314,-0.084592819213867,-0.141802281141281,0.004599886946380,0.032537553459406,-0.000078064345871,0.034975133836269,0.139571443200111,0.041248485445976,-0.121108099818230,0.104496531188488,0.150275871157646,0.062616556882858,0.112346410751343,0.034334030002356,0.002096508629620) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.080812796950340,0.031749952584505,-0.173619598150253,0.094156190752983,-0.056201633065939,-0.038523081690073,0.008654608391225,-0.181935042142868,0.109122961759567,0.032335679978132,0.113088369369507,0.146077126264572,-0.180438011884689,-0.221823081374168,-0.212704196572304,-0.039886139333248) * MODEL2_texOff(vec2(0,0));
res += mat4(0.081903949379921,0.121898002922535,0.107250683009624,-0.056098189204931,0.125649392604828,-0.042287964373827,0.133823856711388,-0.035845890641212,0.119310475885868,-0.037639737129211,-0.098189719021320,-0.075268946588039,-0.019047604873776,0.023968094959855,0.062640428543091,-0.132502108812332) * MODEL2_texOff(vec2(0,1));
res += mat4(0.056916985660791,-0.024325717240572,0.058200247585773,0.043467551469803,0.017068881541491,0.006750387605280,0.024543190374970,0.009920798242092,0.040055409073830,-0.064697280526161,-0.131063625216484,-0.243709653615952,-0.015596646815538,-0.096141450107098,-0.061060972511768,-0.058986481279135) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.084824413061142,-0.064902044832706,0.081975057721138,-0.126518130302429,-0.018089275807142,-0.165201604366302,-0.026782108470798,-0.116945579648018,-0.080340132117271,-0.207898393273354,-0.125623181462288,0.134890258312225,0.006341876462102,0.063503742218018,0.092364653944969,0.035272575914860) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.057557370513678,0.151885136961937,0.014596303924918,0.154107198119164,-0.048360522836447,-0.072702802717686,-0.126443460583687,0.017069386318326,-0.025008827447891,-0.036776553839445,-0.002250178251415,0.022461250424385,-0.058044996112585,-0.097649060189724,-0.181682437658310,0.111753746867180) * MODEL2_texOff(vec2(1,1));
res += mat4(0.035991787910461,0.003996876068413,-0.014468694105744,0.029285848140717,0.160477936267853,0.061856675893068,0.001746267895214,-0.096814580261707,-0.032156068831682,0.041958138346672,0.001633141306229,-0.175867125391960,0.026732465252280,0.019979657605290,0.074770927429199,0.006454614922404) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.034547928720713,-0.061848875135183,0.042879082262516,0.074789471924305,0.026253029704094,-0.051080312579870,-0.039668966084719,-0.077819891273975,0.083103336393833,-0.038535367697477,0.291515171527863,0.069971628487110,0.171874865889549,0.202244043350220,-0.026100350543857,-0.180518165230751) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.095472984015942,-0.102156057953835,-0.039511315524578,0.050870608538389,-0.004037376958877,-0.033065672963858,-0.063097015023232,0.023127276450396,-0.078301951289177,0.018153825774789,0.028354719281197,-0.013499022461474,0.098968155682087,-0.033053744584322,0.126206234097481,0.008712375536561) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.093109585344791,-0.107457749545574,-0.051202081143856,0.041321013122797,-0.081421241164207,-0.063548430800438,0.026724908500910,0.017563987523317,0.080826736986637,-0.038188476115465,-0.073232911527157,-0.017674351111054,0.099472828209400,0.034310288727283,0.027605997398496,0.002751999069005) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.046358186751604,-0.051974717527628,-0.175738587975502,0.274065792560577,-0.092582821846008,0.046875655651093,0.035058237612247,0.088004469871521,0.500159084796906,0.376636266708374,0.166338995099068,-0.051352374255657,0.208991825580597,-0.132506668567657,0.316981315612793,0.281048208475113) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.128246784210205,-0.054069627076387,-0.048545178025961,0.038989044725895,0.065547503530979,-0.224219813942909,0.036123126745224,-0.149000450968742,0.063662342727184,-0.057385012507439,-0.048853930085897,-0.112219400703907,0.151042342185974,-0.005324095021933,0.024820543825626,-0.088190101087093) * MODEL3_texOff(vec2(0,1));
res += mat4(0.003750860923901,-0.034756943583488,0.025322340428829,0.059432487934828,0.054179910570383,-0.044193074107170,0.069241665303707,-0.002307490678504,-0.161547422409058,0.017192032188177,-0.060965564101934,-0.088958442211151,-0.020814843475819,-0.036331512033939,-0.038945589214563,-0.142422363162041) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.151155307888985,0.018987875431776,0.231781959533691,0.027385596185923,-0.012721004895866,-0.127493500709534,-0.009326873347163,-0.197989195585251,-0.198263913393021,0.028085231781006,-0.188717916607857,-0.016666838899255,-0.115360118448734,0.018127191811800,-0.152320832014084,-0.111034393310547) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.028035562485456,-0.077814474701881,-0.055593430995941,0.020209828391671,-0.013643409125507,0.004722365178168,0.001600724644959,-0.043271139264107,-0.054560292512178,-0.008644789457321,-0.059275865554810,0.067930549383163,-0.084307000041008,-0.015793278813362,-0.148669078946114,0.094409734010696) * MODEL3_texOff(vec2(1,1));
res += mat4(0.078871823847294,0.038239531219006,0.027435224503279,0.075668402016163,0.102323278784752,0.064796365797520,-0.028112877160311,-0.003707219148055,0.081031709909439,0.121100425720215,0.003239385783672,-0.028244145214558,-0.029810031875968,-0.059539820998907,0.067647472023964,-0.021695351228118) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.147775575518608,0.001535504939966,0.124150648713112,0.141006693243980,0.256943136453629,-0.213002458214760,-0.135538682341576,0.025969630107284,-0.088179700076580,-0.131585896015167,0.086271174252033,0.031213611364365,0.012133438140154,0.188351109623909,0.169617727398872,-0.187133952975273) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.064963378012180,0.156648054718971,-0.002020972780883,-0.004542843904346,0.104688316583633,0.127533614635468,-0.006760249380022,-0.068621672689915,0.048755232244730,0.034639127552509,0.055947232991457,-0.045213855803013,0.014669867232442,-0.044567931443453,0.103927269577980,0.039025288075209) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.059034463018179,0.091770239174366,-0.022474570199847,0.111028619110584,0.180914178490639,-0.023542968556285,0.090392000973225,0.048438418656588,0.039641764014959,-0.190726175904274,0.055835634469986,-0.045178201049566,0.063628539443016,0.022358980029821,0.101729854941368,-0.021100681275129) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.250115245580673,0.226389661431313,-0.104678668081760,0.075003422796726,0.319833278656006,0.086773313581944,0.158019572496414,-0.126432999968529,-0.094158031046391,0.105295866727829,-0.057949576526880,0.353666186332703,-0.116298526525497,-0.280132114887238,0.148241102695465,0.140057176351547) * MODEL4_texOff(vec2(0,0));
res += mat4(0.276560842990875,0.005963304080069,-0.057190649211407,0.165842592716217,0.107259564101696,-0.170314386487007,0.025173630565405,-0.066880412399769,0.037195477634668,-0.147292673587799,0.074697956442833,-0.037445984780788,-0.104125328361988,0.130397155880928,0.103765211999416,-0.092939212918282) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.089075200259686,-0.032670844346285,0.010059031657875,0.029032643884420,-0.148135796189308,-0.090534813702106,-0.150662839412689,-0.054815568029881,0.091008111834526,0.040216069668531,0.088055685162544,0.215259239077568,0.107130363583565,0.015038410201669,0.069937512278557,0.000208001947613) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.137349233031273,-0.150354132056236,-0.070111833512783,0.016334950923920,-0.134052768349648,-0.043737914413214,-0.182909086346626,-0.020112408325076,0.214921504259109,0.087412528693676,0.266264975070953,-0.096958421170712,0.082596994936466,0.156214460730553,-0.003359186463058,0.054733943194151) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.088834039866924,0.103272296488285,-0.023885324597359,0.063985586166382,-0.081661455333233,0.083153553307056,-0.052311070263386,-0.007381718605757,0.063313052058220,-0.038334403187037,-0.034392565488815,0.043586183339357,0.108140498399734,-0.024588897824287,0.033623419702053,-0.004308052826673) * MODEL4_texOff(vec2(1,1));
res += mat4(0.035782281309366,-0.029440553858876,0.043355368077755,0.036521725356579,-0.102038145065308,-0.053727731108665,-0.017427019774914,0.038819443434477,-0.069777607917786,-0.020441239699721,-0.006890859920532,0.019189937040210,-0.037344865500927,0.090549744665623,-0.125400602817535,0.079528570175171) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.135294973850250,0.058970086276531,-0.000520023691934,0.067742779850960,-0.251189470291138,0.004715115297586,0.026300530880690,-0.111900486052036,0.020765611901879,0.024887183681130,-0.246772542595863,-0.026561954990029,-0.050677660852671,-0.033765904605389,-0.259883075952530,-0.041751239448786) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.011812048032880,-0.015539762564003,-0.109724089503288,-0.061808623373508,-0.011754755862057,0.111253321170807,0.031962022185326,-0.032113730907440,-0.066574707627296,-0.083552084863186,-0.064276583492756,-0.012020316906273,0.083058483898640,-0.031295903027058,-0.152810245752335,-0.054120715707541) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.107012435793877,0.167711153626442,0.041547358036041,0.106779776513577,-0.010161769576371,0.112851843237877,-0.045569669455290,-0.076112501323223,0.019476681947708,0.029830243438482,-0.037281624972820,-0.006716295145452,-0.162233188748360,-0.070434153079987,-0.044668234884739,-0.020568445324898) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.080629967153072,-0.110949590802193,0.172342151403427,0.054130814969540,0.029952455312014,-0.025834375992417,-0.123297251760960,-0.059447448700666,0.102721855044365,-0.031137811020017,0.160939574241638,-0.124881349503994,-0.118812948465347,-0.010849515907466,-0.047775533050299,0.082512289285660) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.034478247165680,0.061522096395493,0.053699977695942,-0.009646158665419,-0.105788394808769,0.208991512656212,-0.038363091647625,0.073082722723484,0.030450193211436,-0.355442970991135,0.112471632659435,0.043079506605864,0.041201200336218,-0.061868827790022,0.019313368946314,-0.089450515806675) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.116906657814980,-0.019531663507223,-0.035866029560566,-0.112955346703529,0.053800851106644,0.028927225619555,-0.019103983417153,-0.046646717935801,-0.000600031227805,0.070530176162720,0.015101138502359,0.001552734524012,0.096391238272190,-0.077756918966770,0.015300459228456,0.015378724783659) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.222916930913925,0.007330611348152,-0.315812647342682,0.180443048477173,0.115327589213848,0.089467063546181,0.089961118996143,-0.016003487631679,-0.111733369529247,-0.073288783431053,-0.137982845306396,-0.063015125691891,0.102999269962311,-0.074323408305645,-0.112731814384460,-0.119896098971367) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.128545388579369,0.072080262005329,-0.005766987800598,0.028973104432225,-0.029267095029354,-0.010045118629932,-0.017287101596594,-0.162388548254967,-0.082161575555801,0.114429950714111,-0.114881411194801,0.024265959858894,0.029682749882340,-0.007143444381654,-0.037963256239891,-0.090239174664021) * MODEL5_texOff(vec2(1,1));
res += mat4(0.002178145106882,0.213572353124619,-0.072734624147415,-0.040094170719385,0.108760535717010,0.014835095964372,0.129136666655540,0.143906190991402,0.039285738021135,0.108293622732162,-0.040369518101215,0.012290208600461,-0.085589319467545,-0.010500155389309,-0.042880348861217,0.084071703255177) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.013044658116996,-0.112273983657360,-0.238436996936798,-0.098918206989765,0.360981315374374,0.147412747144699,0.145022511482239,-0.119555585086346,-0.082495465874672,-0.086099356412888,0.023503916338086,-0.057275801897049,-0.027560919523239,-0.012484299018979,-0.025047415867448,-0.016805354505777) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.131411015987396,0.088446639478207,-0.006391230504960,-0.118598058819771,0.175142124295235,0.025233130902052,-0.038759790360928,-0.059488140046597,-0.045866034924984,0.138244748115540,-0.015096021816134,-0.043142758309841,0.003018885850906,0.029345219954848,-0.008443580940366,-0.028149217367172) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.056010045111179,-0.025248538702726,0.076596356928349,0.008623589761555,-0.013179930858314,0.057185329496861,-0.003389315912500,0.018878212198615,-0.049965795129538,0.007714306935668,0.134712606668472,-0.002039985032752,0.004314611665905,0.018008973449469,0.020161397755146,0.127699434757233) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.027250306680799,0.026677938178182,0.080713063478470,-0.237573951482773,-0.312081366777420,0.206440150737762,-0.053192380815744,0.148938968777657,0.053711537271738,0.238710761070251,-0.096830569207668,0.153856903314590,0.044229011982679,-0.016764352098107,0.170553356409073,0.074398770928383) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.228629663586617,-0.280452042818069,-0.035082299262285,-0.112465322017670,-0.128852993249893,-0.122699953615665,0.072975635528564,-0.079518049955368,-0.152242600917816,0.136558383703232,-0.071597687900066,0.169032350182533,-0.137076273560524,0.038482364267111,-0.104217886924744,0.099493876099586) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.045980948954821,-0.030434822663665,-0.032757021486759,0.053010016679764,0.076893426477909,0.142087027430534,0.059600964188576,0.075367949903011,-0.072601817548275,0.071681149303913,-0.148043766617775,-0.009005255997181,-0.039300642907619,0.006349546834826,-0.077604636549950,-0.013208344578743) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.016986839473248,-0.108601786196232,-0.018657619133592,-0.001545132254250,0.051294576376677,-0.004094484262168,-0.039952222257853,-0.124398127198219,0.039975371211767,0.170747905969620,0.075832411646843,-0.006075281184167,-0.144470512866974,-0.052923075854778,-0.111884899437428,0.222477480769157) * MODEL6_texOff(vec2(1,0));
res += mat4(0.083756022155285,-0.163249671459198,0.104152262210846,-0.072325177490711,-0.034239660948515,0.117524154484272,0.040041211992502,0.041100136935711,0.069574423134327,-0.130452170968056,0.031060256063938,-0.018771423026919,0.003278895746917,-0.054428167641163,0.101070433855057,0.107172220945358) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.046133875846863,0.028132392093539,0.178019389510155,0.035820554941893) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_Medium_2x_Photo] mapping 4_6

vec4 hook()
{
vec4 res = vec4(-0.156243711709976,-0.163676828145981,-0.110466212034225,-0.021543031558394);
res += mat4(-0.005275042261928,0.062903352081776,-0.075220108032227,-0.066619880497456,0.052160102874041,-0.085871107876301,0.203772261738777,-0.129039496183395,-0.040336113423109,-0.062016632407904,-0.149660423398018,-0.036761384457350,0.025079037994146,0.054025847464800,-0.027068598195910,0.049810688942671) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.115075603127480,0.029943121597171,0.106272600591183,0.041687201708555,-0.058783847838640,-0.101339459419250,0.201205492019653,-0.216736868023872,0.043152380734682,-0.004727739840746,-0.045879039913416,-0.065093979239464,0.050006631761789,0.177197575569153,-0.321972131729126,0.113553620874882) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.024615958333015,0.079439066350460,0.088396377861500,-0.005970431026071,0.006802947260439,0.009997467510402,-0.057053692638874,-0.035491667687893,-0.044648557901382,-0.032893382012844,-0.088186793029308,-0.014908277429640,0.101039826869965,0.078988187015057,-0.023814359679818,0.078746028244495) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.121435761451721,-0.039439912885427,0.098087906837463,-0.055055581033230,-0.055572666227818,0.383787393569946,-0.135440915822983,0.012232479639351,-0.135513335466385,-0.007662100251764,-0.204696670174599,-0.051915891468525,0.060498967766762,-0.045467581599951,0.137437045574188,0.059279561042786) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.090726837515831,0.061430063098669,-0.012867477722466,-0.029389379546046,0.042781706899405,0.291766673326492,-0.157528668642044,0.144282981753349,-0.169770419597626,0.165160506963730,-0.230051353573799,0.023935811594129,0.180756494402885,0.018316179513931,0.269175410270691,0.071288339793682) * MODEL1_texOff(vec2(0,0));
res += mat4(0.023235978558660,-0.006007718853652,0.027404960244894,0.071440689265728,0.013272528536618,0.056480504572392,-0.152416840195656,0.045009177178144,-0.020639548078179,-0.033960040658712,-0.243477910757065,-0.056098897010088,0.072998598217964,0.021095400676131,0.195226430892944,-0.029551744461060) * MODEL1_texOff(vec2(0,1));
res += mat4(0.032385177910328,0.088541664183140,0.101005092263222,-0.012674264609814,0.160464480519295,0.115328550338745,0.158412799239159,-0.027352148666978,0.219255521893501,0.002864271402359,0.024777736514807,-0.008300548419356,-0.038104731589556,-0.094755940139294,-0.005830615293235,-0.039561610668898) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.043109960854053,0.082928128540516,0.105232954025269,0.003127181669697,0.285994082689285,0.085059992969036,-0.077468074858189,-0.051831450313330,0.218853175640106,-0.107689812779427,0.057065166532993,-0.027813449501991,-0.108229994773865,-0.184363305568695,0.044391758739948,-0.048003438860178) * MODEL1_texOff(vec2(1,0));
res += mat4(0.131988316774368,0.045264385640621,0.040730684995651,0.011155195534229,0.184165179729462,-0.011542050167918,-0.001046766294166,-0.000890661147423,0.149485677480698,-0.075453892350197,-0.036268066614866,-0.014735843054950,-0.099166676402092,-0.124294832348824,0.072189942002296,0.009256648831069) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.003380885813385,-0.008582999929786,-0.123544044792652,0.015028776600957,-0.017952268943191,-0.032036971300840,0.092179402709007,0.085343345999718,-0.225946336984634,0.048505648970604,-0.030811473727226,0.029978683218360,-0.021810276433825,0.002481576986611,0.008490607142448,-0.061739787459373) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.089685700833797,-0.045500338077545,0.008721067570150,-0.078280873596668,-0.122445791959763,0.072400979697704,-0.036063257604837,0.047069299966097,-0.026819881051779,0.150360316038132,-0.178813859820366,0.088236235082150,-0.122441656887531,0.024460129439831,-0.142523035407066,0.020781410858035) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.134094595909119,0.083261959254742,-0.080643057823181,0.017535654827952,0.198778152465820,-0.049999866634607,-0.006413763388991,-0.088991977274418,0.014719085767865,-0.004834644030780,0.054480653256178,-0.003853157628328,0.118731744587421,0.014731202274561,-0.028459994122386,-0.024317678064108) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.023496927693486,-0.050866447389126,-0.023008909076452,-0.012386748567224,0.020069647580385,0.066787801682949,0.036397743970156,0.077008642256260,0.043990563601255,0.029829181730747,0.046765614300966,0.066964752972126,-0.016754465177655,0.005897284951061,-0.115842111408710,0.038868680596352) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.123519651591778,0.035801447927952,0.038216643035412,0.063226357102394,0.039157595485449,-0.209985077381134,0.073305323719978,-0.030537795275450,0.114881679415703,-0.049887597560883,0.190989330410957,-0.235518842935562,-0.027685279026628,-0.134945943951607,0.052282430231571,-0.111860938370228) * MODEL2_texOff(vec2(0,0));
res += mat4(0.139030784368515,0.014229879714549,0.028565809130669,-0.047499630600214,-0.130827128887177,0.171925246715546,-0.079707786440849,-0.143819987773895,0.044563654810190,0.083501353859901,0.155962899327278,-0.061729084700346,-0.130928352475166,0.103622131049633,-0.164784103631973,0.162572696805000) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.098986051976681,-0.082145310938358,0.032766237854958,-0.110224314033985,0.014815381728113,0.060120195150375,0.046388231217861,-0.017867285758257,0.196806758642197,-0.050050754100084,-0.057706065475941,-0.071216233074665,0.030970811843872,0.120927244424820,0.010495875030756,0.034105747938156) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.025802591815591,-0.021006386727095,0.012057543732226,-0.026362752541900,0.046164412051439,0.159179583191872,-0.054621316492558,0.050315693020821,0.128316372632980,-0.224485516548157,0.199600249528885,0.045932922512293,-0.136720523238182,-0.089199729263783,-0.066554270684719,-0.062570437788963) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.023147789761424,0.040164493024349,0.076232858002186,-0.135341942310333,0.061990372836590,-0.106992915272713,0.127113536000252,-0.018177082762122,-0.029264902696013,-0.063163034617901,0.059495247900486,-0.049232881516218,0.117962844669819,0.038450986146927,0.086942583322525,0.048633977770805) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.061289552599192,0.031832955777645,-0.037217862904072,0.105018891394138,-0.031878333538771,0.042613487690687,0.051526084542274,0.027743007987738,-0.116508886218071,-0.058938257396221,-0.033532362431288,-0.038410827517509,0.045168340206146,0.033608209341764,-0.050326015800238,-0.076589241623878) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.058383785188198,-0.048895765095949,-0.041500907391310,0.055956173688173,0.038053326308727,0.035076968371868,-0.013054808601737,-0.029018590226769,0.008300971239805,-0.044758439064026,0.137784317135811,-0.349370509386063,0.047356531023979,0.042985748499632,-0.140792518854141,0.138811692595482) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.026727475225925,-0.050614248961210,0.012025670148432,-0.016637085005641,0.115464292466640,0.006371986586601,0.017471443861723,-0.008247042074800,-0.061704691499472,-0.079186134040356,0.023544644936919,-0.061446268111467,0.131889015436172,0.029334105551243,0.033299367874861,0.027184998616576) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.032063648104668,-0.053383357822895,0.025705931708217,0.057631097733974,-0.010456924326718,0.014553486369550,0.027114732190967,0.100942969322205,-0.065229520201683,-0.126463070511818,-0.115026377141476,0.096898064017296,0.039267223328352,-0.023682372644544,0.095559209585190,-0.181327551603317) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.176828190684319,-0.039787892252207,0.057537741959095,-0.012395447120070,-0.182976052165031,-0.096277371048927,-0.035297669470310,0.024388637393713,0.026014409959316,0.231025189161301,-0.110603220760822,0.157798379659653,-0.070853643119335,-0.254752308130264,0.364588767290115,0.079493597149849) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.056252717971802,-0.042411588132381,-0.076391413807869,0.011228926479816,-0.018739122897387,0.038859501481056,0.025966608896852,-0.130965158343315,-0.067443706095219,0.000106689149106,-0.082366116344929,-0.145403981208801,0.025293964892626,0.105950146913528,0.064995922148228,-0.197995036840439) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.051160566508770,-0.014823324978352,-0.085318788886070,0.011775889433920,0.022014075890183,0.001411606208421,0.043761167675257,0.016929630190134,-0.028943682089448,-0.104125462472439,0.014988045208156,-0.007774916477501,-0.022133573889732,0.041695646941662,-0.011950308457017,0.074038147926331) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.254320502281189,0.075092658400536,0.165977358818054,0.040230084210634,0.077730409801006,-0.005087094847113,-0.047965526580811,0.042000543326139,0.015086597763002,0.017017392441630,0.129709213972092,-0.020516060292721,0.054270707070827,0.098830193281174,-0.189641505479813,0.271744728088379) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.064744748175144,0.026531528681517,-0.035912688821554,-0.073664397001266,-0.014611775055528,0.019241977483034,0.020625703036785,-0.057962868362665,-0.062373630702496,-0.042807158082724,0.012083809822798,-0.053466849029064,0.033223550766706,-0.012556049972773,0.033875383436680,-0.081678211688995) * MODEL3_texOff(vec2(1,1));
res += mat4(0.128778204321861,-0.050890818238258,0.148215591907501,-0.046317055821419,0.488279044628143,-0.008015438914299,0.049726136028767,0.032022710889578,0.082939781248569,0.091453492641449,-0.032029259949923,0.000436135189375,-0.119124010205269,0.015374248847365,-0.073459111154079,0.005440405569971) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.153120934963226,-0.055432405322790,0.192434743046761,-0.102004945278168,0.362768769264221,-0.029217379167676,0.057261943817139,0.015192901715636,0.054093889892101,0.034413538873196,0.084773257374763,-0.043597701936960,-0.114740848541260,0.128225192427635,-0.197708457708359,0.229825556278229) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.040881320834160,-0.040727723389864,0.157409951090813,-0.047590333968401,0.206909596920013,0.063029915094376,0.022711437195539,0.024743970483541,0.112996242940426,-0.047456473112106,-0.017378587275743,0.014273188076913,-0.159041181206703,-0.004214105661958,-0.130141898989677,0.061897750943899) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.076537922024727,0.209335237741470,0.000456269917777,0.048791591078043,-0.149994179606438,0.111871063709259,0.122560128569603,0.043274782598019,0.177511677145958,-0.005910484585911,0.096183069050312,0.078260891139507,0.272967219352722,-0.068420976400375,0.011085756123066,-0.100958891212940) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.026469089090824,0.372214436531067,-0.078346870839596,0.081631518900394,-0.151829898357391,0.238596037030220,0.202889665961266,0.192625626921654,0.088133417069912,-0.068909049034119,0.021681325510144,0.098757453262806,0.443405687808990,-0.274349510669708,0.238451346755028,-0.237826257944107) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.033868379890919,0.115039989352226,0.002854032907635,0.012640506029129,-0.082408361136913,0.133126467466354,0.091596558690071,0.044807866215706,0.002464037854224,0.141523510217667,-0.092909038066864,0.024890922009945,0.155019834637642,-0.080597192049026,-0.039806123822927,-0.008607958443463) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.039367217570543,-0.103877104818821,0.043070189654827,0.046408940106630,-0.003384501440451,-0.014332893304527,-0.033591553568840,0.005063893273473,-0.082588002085686,0.154109597206116,0.045739818364382,0.005969928577542,-0.015616252087057,0.094613827764988,0.211305603384972,-0.001043633325025) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.093171916902065,-0.219097018241882,0.104537993669510,-0.113848507404327,-0.012204217724502,-0.072468109428883,-0.109307371079922,-0.034350950270891,-0.016706107184291,0.296137034893036,-0.018566472455859,0.019441634416580,-0.067055821418762,0.421180129051208,0.193636506795883,0.054335959255695) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.016286658123136,-0.042137116193771,0.079009465873241,-0.000600007770117,-0.014940104447305,-0.068847440183163,-0.004615655168891,0.009735492058098,0.182260200381279,0.026702605187893,0.124145336449146,-0.018107928335667,-0.003295520786196,0.091029524803162,0.172456353902817,0.018923036754131) * MODEL4_texOff(vec2(1,1));
res += mat4(0.042962811887264,-0.010971291922033,0.066051483154297,-0.010217879898846,-0.023417968302965,0.007169578224421,0.008088937029243,-0.017381286248565,-0.036225438117981,0.017757210880518,-0.051929421722889,-0.034445140510798,0.079962678253651,0.070631183683872,-0.168603762984276,0.012751909904182) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.070561602711678,0.101206757128239,0.014852986671031,-0.054409254342318,-0.051152210682631,0.024033037945628,-0.165300920605659,0.220160260796547,-0.202359229326248,-0.043284855782986,0.050174836069345,-0.031095914542675,0.113144442439079,0.046855073422194,-0.081879504024982,-0.194789320230484) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.156259864568710,-0.031455412507057,-0.019308485090733,-0.002348148496822,-0.052546512335539,0.008805839344859,-0.130733743309975,0.055889699608088,0.006627912633121,0.037481736391783,0.050767194479704,0.007903967052698,-0.020482264459133,0.000776732049417,0.028061017394066,0.044040907174349) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.235237836837769,0.021166520193219,-0.030621629208326,-0.194546684622765,0.109056822955608,-0.132581129670143,-0.053701300173998,-0.085667148232460,0.021540343761444,-0.097858242690563,0.007211989723146,-0.043159238994122,0.089510254561901,-0.157896146178246,0.166972324252129,-0.102495238184929) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.022195752710104,-0.324212402105331,0.214094832539558,0.152100726962090,0.228261679410934,-0.109122194349766,0.143585115671158,-0.103181272745132,-0.393973141908646,-0.184254646301270,-0.060153476893902,-0.003724451176822,-0.137176319956779,-0.056144975125790,0.128094583749771,0.142370373010635) * MODEL5_texOff(vec2(0,0));
res += mat4(0.025926075875759,-0.056133590638638,-0.026043623685837,-0.005779922008514,-0.041918396949768,-0.083006277680397,0.031881131231785,0.150695607066154,-0.041638266295195,-0.054765515029430,-0.077351376414299,0.054863452911377,-0.052116420120001,-0.121191427111626,0.137641608715057,-0.029585009440780) * MODEL5_texOff(vec2(0,1));
res += mat4(0.128165468573570,0.101141408085823,0.076348051428795,-0.037716481834650,-0.129798293113708,-0.015303331427276,-0.039501320570707,-0.035381808876991,-0.053185045719147,0.020023759454489,0.064113922417164,0.053660541772842,0.037763640284538,0.039404656738043,-0.029113326221704,-0.079559221863747) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.191014379262924,0.044917181134224,-0.051690239459276,-0.018391173332930,-0.079137206077576,-0.073839075863361,0.153756588697433,-0.007553363684565,0.165217727422714,-0.018373409286141,-0.254367232322693,0.052264161407948,0.032294005155563,-0.176257595419884,0.087511554360390,-0.168759807944298) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.029616396874189,-0.047189835458994,-0.038754913955927,0.082039855420589,-0.012613780796528,-0.051829271018505,-0.088339179754257,0.025809872895479,0.116740606725216,0.000273189536529,-0.117261677980423,0.029034495353699,0.018150037154555,-0.102022863924503,-0.006985155865550,-0.094763882458210) * MODEL5_texOff(vec2(1,1));
res += mat4(0.156623363494873,-0.014987662434578,0.110093407332897,-0.023112218827009,-0.010632742196321,0.106551378965378,-0.008718286640942,0.036184508353472,-0.104551486670971,0.013933680020273,0.002231719670817,-0.008809456601739,-0.041715383529663,-0.099127240478992,0.009738885797560,-0.047091081738472) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.113831095397472,-0.038555864244699,0.209480911493301,-0.059028454124928,-0.169456198811531,0.025980664417148,-0.131031990051270,0.043580029159784,0.035830102860928,-0.083376429975033,0.188583359122276,-0.113393947482109,-0.172399431467056,-0.005021261051297,-0.074626788496971,-0.008701774291694) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.140063047409058,0.056997962296009,-0.146182268857956,0.104167640209198,0.032190419733524,-0.012596154585481,0.086662381887436,-0.023752866312861,-0.019220266491175,0.029836706817150,0.022542521357536,0.017721919342875,-0.038487777113914,0.010048768483102,-0.082318000495434,0.018328748643398) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.159251660108566,0.032336771488190,-0.055219843983650,-0.076312229037285,0.134196862578392,0.055287573486567,0.125364422798157,0.071683086454868,-0.182221323251724,-0.051384858787060,-0.135433956980705,0.024712072685361,-0.086406685411930,0.073239035904408,-0.152074620127678,-0.031340047717094) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.142608463764191,0.112970717251301,-0.118861682713032,0.037332255393267,-0.209938436746597,-0.071831248700619,0.113587006926537,0.072391115128994,0.022929431870580,-0.036155611276627,-0.127687036991119,0.066212706267834,0.054991975426674,-0.109846070408821,-0.063313633203506,-0.035535845905542) * MODEL6_texOff(vec2(0,0));
res += mat4(0.173687592148781,-0.202262848615646,0.185239508748055,-0.025987930595875,0.022142421454191,0.077956706285477,0.034786265343428,0.013539827428758,-0.063753947615623,-0.064709395170212,0.034992795437574,0.054388720542192,-0.052637260407209,-0.123556204140186,0.060056667774916,-0.025810318067670) * MODEL6_texOff(vec2(0,1));
res += mat4(0.116996526718140,-0.032582111656666,0.053273599594831,-0.008654978126287,0.046146057546139,-0.060409914702177,0.112277135252953,0.000757625559345,0.075284011662006,-0.056350801140070,-0.118813112378120,-0.001483225380071,0.044223841279745,-0.033009272068739,-0.011872981674969,-0.073276937007904) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.009589554741979,-0.051390808075666,0.029719410464168,0.003756148274988,0.174571171402931,-0.075269669294357,-0.091555856168270,-0.073905862867832,-0.092099048197269,0.012748636305332,-0.115705505013466,0.093655824661255,0.018634844571352,0.000387101405067,-0.043540503829718,-0.003268917789683) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.196959748864174,0.036843642592430,-0.089970573782921,0.021870465949178,0.002713391557336,-0.067343376576900,0.003985852468759,-0.033806379884481,0.045980576425791,0.026820676401258,-0.069135747849941,0.030618062242866,-0.128533929586411,-0.085276193916798,-0.036819860339165,0.095837786793709) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.028107436373830,0.021566275507212,-0.038092195987701,0.983751118183136) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_Medium_2x_Photo] sup-pixel convolution 1

vec4 hook()
{
vec4 res = vec4(0.000290028838208,-0.000571454642341,0.000682239537127,-0.000135736976517);
res += mat4(-0.002544651972130,-0.001514488132671,-0.006860637106001,0.001808955683373,-0.007592510432005,0.003475624602288,0.002168293343857,0.005173694342375,0.006501987110823,-0.006533935666084,-0.004128523636609,-0.002759356983006,0.009626407176256,-0.000296296318993,0.000310158124194,-0.008792244829237) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.002838994143531,0.001619302667677,-0.027150811627507,-0.024204159155488,-0.008711199276149,0.018206199631095,-0.010419094935060,-0.004696751013398,-0.010452797636390,0.018071867525578,0.006635352503508,-0.000511113263201,0.006662929896265,-0.022269168868661,-0.006297510582954,-0.002455793088302) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.011398542672396,-0.014031331986189,-0.000196957204025,-0.010978330858052,0.003983796574175,-0.005441751331091,0.012729835696518,0.001592695130967,0.007474137470126,-0.014128547161818,0.006758119445294,0.005255504045635,-0.028680033981800,0.035765465348959,-0.006795529741794,0.015672160312533) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.006296181119978,0.000981282209978,0.007727356627584,-0.004310950171202,0.047769892960787,0.003496164223179,-0.045019082725048,0.011605941690505,-0.005284684710205,-0.006355909630656,0.011921898461878,-0.008375238627195,-0.030157973989844,0.038249194622040,0.004296485334635,0.023807153105736) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.034623760730028,0.032889589667320,0.039377011358738,0.042111840099096,-0.008048388175666,-0.053176555782557,0.054628100246191,-0.007780804298818,0.003849181346595,0.001915461500175,-0.032820384949446,0.018487753346562,0.070608705282211,-0.056095562875271,0.047825396060944,-0.063680909574032) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.011806442402303,-0.000024202094210,-0.014172417111695,0.000735004956368,-0.010318292304873,0.019207863137126,-0.012300545349717,-0.011272800154984,0.008578221313655,0.012730537913740,0.008432308211923,-0.018122427165508,-0.027267206460238,-0.005845204927027,-0.043282210826874,0.033861204981804) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.002926259534433,0.001368584111333,-0.005518889520317,-0.001751613803208,-0.022110935300589,-0.006714223418385,0.034143645316362,-0.029124796390533,0.001967942574993,0.005885242950171,-0.002319538500160,0.000997105962597,-0.010821670293808,0.004459903575480,-0.036384858191013,0.028730658814311) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.013758259825408,-0.013933317735791,0.002769601764157,0.001296386821195,0.008290121331811,0.003998610656708,-0.043189391493797,0.042260061949492,-0.006424083374441,-0.005187564529479,0.009807412512600,-0.001982508692890,-0.004683697130531,0.016376603394747,0.024931317195296,-0.002274790080264) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.000187879908481,-0.003382768249139,-0.006351263727993,-0.005291382316500,0.004322583321482,0.003034960245714,0.003501336323097,-0.003725291928276,-0.006263196002692,-0.007682744879276,-0.002758824964985,0.008313799276948,0.013944492675364,-0.001555603230372,0.008908566087484,-0.023162890225649) * MODEL7_texOff(vec2(1,1));
res += mat4(0.002347509609535,0.008706319145858,-0.004824180155993,0.006879763677716,0.007740151602775,-0.014575054869056,0.002205844502896,-0.005999913439155,-0.000979128410108,-0.004892203956842,0.000634460826404,-0.003870890708640,0.002246397081763,0.002122533973306,0.001597375376150,0.000517253763974) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.020693257451057,-0.026521444320679,0.008007194846869,-0.000959752651397,-0.027782361954451,0.030238131061196,-0.006263700779527,0.003641249379143,-0.024655874818563,0.032789114862680,-0.010499657131732,0.019682375714183,0.019428471103311,-0.010933914221823,-0.003019557800144,0.002655385062099) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.009499706327915,-0.001577068702318,-0.006734988652170,0.002765833167359,0.009679700247943,0.001295310677961,0.005528853274882,-0.000552644138224,0.045656371861696,-0.031919211149216,0.007313967682421,-0.006991805974394,0.003451194614172,-0.012564999982715,0.003124976763502,-0.002223603893071) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.037402547895908,-0.025573991239071,0.032527394592762,-0.009809947572649,-0.016286512836814,-0.003015092341229,-0.003795984899625,-0.015022187493742,-0.004749838262796,-0.000209079022170,-0.001185430097394,-0.001413359306753,-0.013658428564668,0.003963790833950,-0.011390273459256,0.001913125743158) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.020106455311179,-0.034211706370115,0.030401315540075,-0.044331271201372,-0.026948302984238,0.029645744711161,-0.046100102365017,0.054911945015192,-0.003024409990758,0.010885502211750,-0.019107498228550,0.022936208173633,0.015381858684123,0.013533478602767,0.046530731022358,-0.015351582318544) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.011874073185027,0.010488151572645,-0.009536227211356,-0.000980450771749,0.013068440370262,-0.003086360869929,0.011788379400969,-0.004732571542263,-0.003304896643385,-0.001846587168984,0.039804589003325,-0.036695387214422,0.057699650526047,-0.063308790326118,0.032781198620796,-0.049608271569014) * MODEL8_texOff(vec2(0,1));
res += mat4(0.004926575813442,0.002875465666875,0.015897782519460,-0.009144544601440,0.001219225465320,-0.001350082922727,-0.006470930296928,0.000733963679522,0.002705133520067,0.000087003434601,-0.002628819551319,0.002120012650266,0.000190768711036,-0.006027352996171,-0.003896617796272,-0.001435642829165) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.001130165066570,-0.005866228602827,0.008176038973033,-0.018117405474186,0.000537035346497,0.005933244246989,-0.004794351290911,0.005383334588259,-0.002695875475183,0.000518841261510,-0.004126088228077,0.000395927345380,-0.005896873306483,0.005436965264380,-0.015231234952807,0.016791412606835) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.005743220914155,0.004789980594069,-0.011058425530791,0.011985703371465,-0.000917339464650,-0.001871590269729,0.004459646064788,-0.001167805748992,0.005463791079819,-0.002345833694562,-0.003059694543481,0.004645457491279,-0.001144468435086,0.007397047709674,0.021537309512496,-0.016623701900244) * MODEL8_texOff(vec2(1,1));
res += mat4(0.015867169946432,-0.021543446928263,-0.000565770315006,-0.012045448645949,-0.015714928507805,-0.003892641281709,0.006186593323946,0.011887721717358,-0.009970731101930,0.008054107427597,-0.002837422536686,0.001312116626650,-0.003962991759181,0.000954565999564,0.000437699869508,-0.005733470898122) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.032729588449001,0.018424702808261,-0.004520333837718,0.002976689022034,0.024725440889597,-0.006883685942739,-0.037005014717579,-0.022352762520313,0.008373056538403,-0.002515749540180,-0.000505482370500,-0.002670257119462,0.017055884003639,0.010582705028355,-0.000171584862983,0.008404059335589) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.008682028390467,0.005907316692173,0.011706675402820,0.000029275508496,0.014887680299580,0.035496819764376,-0.007464196532965,-0.030821517109871,-0.002716550137848,-0.003348606172949,-0.001989620504901,-0.002194761298597,-0.004058698192239,0.009115516208112,0.002619363600388,0.002432700945064) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.014503230340779,-0.000543334695976,0.039413064718246,-0.025072610005736,0.004359471611679,0.001855207141489,0.017210477963090,-0.004469468723983,-0.054507788270712,0.056241337209940,-0.039688475430012,0.039813149720430,-0.018706714734435,0.010380489751697,-0.020584857091308,0.013300875201821) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.055467844009399,-0.048920888453722,-0.018536301329732,-0.020860178396106,-0.071715995669365,-0.032750543206930,0.059862706810236,0.056352265179157,0.032930288463831,-0.013690955005586,0.030254330486059,-0.007403714582324,0.015090777538717,-0.017577050253749,0.007719505112618,-0.025173505768180) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.019029065966606,0.013961101882160,-0.012840344570577,0.022466860711575,0.002300662687048,-0.035355195403099,-0.009178411215544,0.015778617933393,-0.006153337191790,-0.006727204192430,-0.005568206310272,-0.007535798475146,-0.012935995124280,0.014389205724001,-0.013560222461820,0.011468881741166) * MODEL9_texOff(vec2(0,1));
res += mat4(0.002616026904434,0.000811006349977,-0.003153461031616,0.007811366114765,0.020958730950952,0.000355666357791,-0.030717140063643,-0.003349462756887,-0.003584455698729,0.002723095938563,-0.026238931342959,0.023907870054245,-0.003314455039799,-0.002320319414139,-0.001165294437669,0.001498303143308) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.008258176036179,0.001550215296447,0.023361507803202,-0.013491918332875,0.032626863569021,0.044700819998980,-0.001366219599731,-0.044643107801676,0.007245239801705,-0.001077540335245,0.018527662381530,-0.007850775495172,-0.005098612513393,-0.006466373801231,0.016468413174152,0.005867682397366) * MODEL9_texOff(vec2(1,0));
res += mat4(0.004294638056308,-0.003341893665493,-0.002918787067756,-0.000528367410880,-0.014664729125798,-0.004541914444417,0.000665666302666,0.020888462662697,-0.005320359487087,0.001010779524222,-0.003908273763955,0.000623506202828,0.000155794448801,-0.001093619503081,-0.004865183960646,0.009856204502285) * MODEL9_texOff(vec2(1,1));
res += mat4(0.003271581139416,-0.002684927545488,0.003167090239003,-0.000520142551977,0.014461002312601,-0.003269997425377,0.000936631229706,-0.007712193764746,0.016028977930546,-0.004509021062404,-0.000190903490875,0.008422786369920,-0.001303101656958,0.004321738146245,-0.000721339194570,0.000991251086816) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.010989926755428,0.004947039298713,0.001316714100540,-0.002038531936705,-0.010218986310065,-0.022606249898672,-0.006044276524335,0.026710011065006,0.025613579899073,0.049266412854195,-0.043036490678787,-0.037109501659870,0.001142200897448,-0.009912986308336,0.009435251355171,-0.000712664157618) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.002572191413492,0.005653756670654,-0.005203011911362,-0.001851109205745,-0.006566455122083,0.026091072708368,-0.010497997514904,-0.012371583841741,-0.001114231999964,-0.003082865383476,0.000752702471800,-0.017819004133344,-0.015023807063699,0.013215018436313,-0.008101546205580,0.002903945744038) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.004539727233350,-0.013877362012863,0.005753768142313,-0.012382993474603,-0.009900769218802,0.011964111588895,-0.019605116918683,0.018857199698687,0.006942919455469,0.007248030044138,-0.018316205590963,-0.006050331052393,0.001552449772134,0.005603850819170,-0.001809082226828,0.006492505781353) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.012621434405446,0.029312124475837,-0.030134294182062,0.024745039641857,-0.022326720878482,0.036696378141642,0.058620475232601,-0.047462195158005,-0.066400580108166,-0.015766082331538,0.046795304864645,-0.005555856507272,0.014062711037695,-0.019929084926844,-0.000280459411442,-0.017233056947589) * MODEL10_texOff(vec2(0,0));
res += mat4(0.033235348761082,-0.037004929035902,0.035836171358824,-0.012885508127511,0.010627884417772,-0.028667636215687,-0.008716207928956,0.010832141153514,-0.004131280817091,-0.058508537709713,0.022648390382528,0.060002520680428,-0.055762015283108,0.040895383805037,-0.040503565222025,0.045919779688120) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.001721168751828,0.003972715232521,0.000591490243096,-0.002293989062309,-0.006492815911770,-0.011144509539008,0.011915847659111,0.000551782955881,-0.010049275122583,-0.007287640590221,0.005410414654762,0.003587733488530,-0.000917279685382,0.002712945453823,0.000827545823995,0.004604633897543) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.002758205169812,-0.004713905509561,0.000425266829552,0.009896172210574,0.010778211057186,0.001795062562451,-0.028508551418781,0.009245468303561,0.013780885376036,-0.007061359938234,0.021208442747593,0.014835786074400,0.004936192650348,-0.007531886454672,0.014256019145250,-0.017345033586025) * MODEL10_texOff(vec2(1,0));
res += mat4(0.001326423021965,0.000212391925743,0.007129332982004,-0.014536866918206,0.001787709887139,0.001398097141646,0.001573568442836,0.007662728894502,0.027530746534467,0.040259327739477,-0.032671444118023,-0.021784044802189,-0.000749520666432,0.002781054470688,-0.019558917731047,0.012184358201921) * MODEL10_texOff(vec2(1,1));
res += mat4(0.002636229619384,-0.000999134848826,-0.012441537342966,-0.002299622632563,-0.027102969586849,0.017305139452219,0.015639686957002,0.011131323873997,0.004296565428376,0.001840081415139,-0.003636314533651,-0.000135081514600,-0.022933622822165,0.008223024196923,0.008606678806245,0.011823259294033) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.013603358529508,0.015092684887350,-0.019469469785690,-0.020706759765744,0.031629789620638,-0.022011142224073,-0.009743780829012,-0.013729598373175,0.002509278943762,0.002198157599196,-0.011036201380193,-0.012996140867472,0.044673144817352,-0.023570032790303,-0.010891473852098,0.006153873167932) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.008276401087642,0.007776092737913,-0.003176075639203,-0.011691728606820,-0.002542787697166,0.001024786848575,-0.002054414246231,-0.001608921447769,-0.001302003045566,0.000946072221268,0.002365208696574,-0.001120122731663,-0.007365935016423,-0.001216816017404,-0.003468531183898,-0.007023982238024) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.038169883191586,-0.009013053961098,0.034845460206270,0.008273552171886,0.040174003690481,-0.003598139155656,-0.022965686395764,-0.021440068259835,-0.006541837006807,0.000348821573425,0.014339275658131,-0.001349384896457,0.015145339071751,-0.021233972162008,0.016272682696581,-0.000075524534623) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.027969416230917,-0.054106976836920,0.015278896316886,0.043242685496807,-0.046361491084099,-0.016909277066588,-0.002508701756597,0.066368192434311,-0.023659253492951,-0.024424782022834,0.031195221468806,0.037090267986059,-0.049411542713642,0.061946388334036,0.005693586077541,-0.056468937546015) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.006825868971646,-0.009523957967758,0.005873683840036,0.001207607798278,0.007429032120854,0.009812862612307,0.009099818766117,-0.018054757267237,-0.001514100469649,-0.008074521087110,-0.007315074093640,0.004046379122883,0.000176799730980,-0.007544642779976,-0.013764852657914,0.037137608975172) * MODEL11_texOff(vec2(0,1));
res += mat4(0.005253579933196,0.007225336041301,0.009862407110631,-0.001431881333701,-0.003711577504873,-0.002764549339190,-0.013582384213805,0.009821768850088,0.012750268913805,-0.006321949418634,-0.015363162383437,0.000762078911066,0.006265498232096,0.010756792500615,-0.017191836610436,0.002985499100760) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.006707376800478,-0.006346827372909,0.025250589475036,0.028480304405093,0.008160456083715,0.016145467758179,0.021843690425158,-0.031863052397966,0.036239258944988,0.047125510871410,-0.022777359932661,-0.039311971515417,-0.006542504299432,-0.013557779602706,0.006635274738073,0.015591012313962) * MODEL11_texOff(vec2(1,0));
res += mat4(0.002222614595667,0.001442687236704,-0.000210164245800,0.006889925338328,-0.009915350005031,-0.005075446330011,-0.005369026213884,0.006889332085848,-0.007405676413327,-0.001496971468441,0.002102686092257,-0.000234297433053,0.010376381687820,0.003583730198443,0.005134288221598,-0.013749910518527) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.000446240883321,-0.004703708458692,0.004182246979326,0.002787184668705,0.001108433818445,0.000994868576527,-0.006088940892369,-0.003235055366531,-0.002801347291097,-0.000388578104321,0.009832804091275,0.001329984515905,0.005311907734722,0.000664623628836,-0.006881508976221,-0.001903553376906) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.008213707245886,0.007170938421041,0.006796662230045,0.005459595005959,-0.046574462205172,-0.022515423595905,0.011663504876196,0.002631932962686,-0.008462267927825,-0.008953324519098,0.022446384653449,0.021781617775559,0.011277958750725,0.007732515688986,-0.014064855873585,-0.015849614515901) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.000533246027771,0.005019798409194,0.003379140049219,0.007062839809805,-0.002116856398061,-0.025844773277640,0.004613739438355,0.009857557713985,-0.001029817154631,-0.002483566524461,0.000608391826972,0.007677866145968,0.004850382450968,0.011565391905606,0.001655042055063,-0.003204551525414) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.006464148871601,0.009685263037682,-0.011246777139604,-0.004221900831908,-0.015670197084546,-0.000484027201310,0.011653036810458,0.005035760346800,0.018869971856475,0.002160525182262,-0.019849022850394,-0.003850345034152,0.011615757830441,0.022717116400599,0.011092174798250,0.011977134272456) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.063986651599407,0.032693937420845,-0.059365235269070,-0.036298301070929,-0.029446475207806,-0.041873764246702,0.059757500886917,0.045580644160509,0.043163426220417,0.043459881097078,-0.037768632173538,-0.046516597270966,-0.036888152360916,-0.035212595015764,0.004181070718914,-0.001785422209650) * MODEL12_texOff(vec2(0,0));
res += mat4(0.006601772736758,0.035772617906332,-0.006718715187162,-0.036787617951632,0.000519485794939,-0.006718087010086,-0.002147427061573,0.021168917417526,0.001752133946866,0.015883289277554,-0.006066948175430,-0.013303285464644,0.014650185592473,0.007636760827154,0.013433707877994,0.020497819408774) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.006009892560542,-0.003074109554291,-0.000845827977173,0.005269175861031,0.006350422743708,0.001661170972511,0.000851360207889,-0.002184725133702,-0.008296931162477,-0.001698475680314,0.005896632559597,0.002658307552338,-0.002274344442412,-0.003894784022123,-0.001308444887400,0.003076227614656) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.022411530837417,-0.011362241581082,-0.001152571523562,-0.005872457753867,0.012430158443749,0.010763379745185,-0.011527656577528,-0.000122537676361,-0.013529025018215,-0.014746905304492,0.000798270339146,0.004709319211543,0.006107762921602,0.003688832046464,-0.020533237606287,-0.018331550061703) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.004621179308742,-0.015042607672513,0.001674054423347,0.001005648402497,0.002423525089398,0.010315003804862,-0.003364057512954,-0.012569906190038,-0.002404935657978,-0.007437121588737,0.002818814711645,0.003916994668543,-0.001028279657476,0.001144845620729,0.001436704071239,-0.001808490720578) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 1.200 * > OUTPUT.h LUMA.h 1.200 * > *
//!WIDTH LUMA.w 2 *
//!HEIGHT LUMA.h 2 *
//!BIND SUBCONV1
//!BIND LANCZOS3
//!DESC [AiUpscale_Medium_2x_Photo] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(2));
vec4 res = SUBCONV1_tex(base);
return vec4(res[index.x * 2 + index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
